Alias
-
Git - RemoteGit 2020. 5. 11. 19:48
아래의 내용은 'Pro-Git'을 바탕으로 작성하였습니다. Remote Repository git clone 시 자동으로 origin(remote repo) 등록됨 # 단축이름 및 주소 출력 $ git remote -v origin https://github.com/schacon/ticgit (fetch) origin https://github.com/schacon/ticgit (push) # remote repo 등록 $ git remote add [name] [url] # git fetch or pull $ git fetch [remote_name] $ git pull [remote_name] # git push $ git push [remote_name] [branch_name] git fetch ..
-
ONLY_FULL_GROUP_BY + query 실행 순서Database/MySQL 2020. 2. 6. 23:56
MySQL tutorial를 공부하던 중 발생한 에러에 대해 정리하는 것이 좋을 것 같아 블로그를 쓰게되었다. 아래의 코드는 MySQL 공식 사이트의 alias(별칭)와 관련된 튜토리얼에 나오는 코드이다(공식사이트). SELECT orderNumber as 'Order no.', SUM(priceEach * quantityOrdered) as total FROM orderdetails GROUP BY 'Order no.' HAVING total > 60000; 쿼리를 그냥 실행했더니 아래와 같은 에러가 발생했다. [42000][1055] Expression 1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'class..