![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fdqnfhf%2FbtsEZoUvb6D%2FOmbrOHzF72KLSJmAQKk8eK%2Fimg.png)
테이블에서 원하는 컬럼만 선택 SELECT * (모든 쿼리) / query 중에 아무꺼나 원하는 거 from food_orders fo (테이블 명)_ 컬럼에 별명(alias)을 주기 SELECT restaurant_name '레스토랑 이름', // 퀘리 옆에 ' ' 붙여서 이름 변경 가능 price as '가격' // as를 붙여주어도 된다 order_id ididid // 영어는 ' ' 굳이 안 붙여도 됨 from food_orders fo 두 가지 방법 중 아무것이나 써도 된다. WHERE 절 : 필터링의 기초 문법 select * from 테이블 where 필터링 조건 (eg. 20살 이상) select * from customers where age=21 21살인 사람들만 필터 sum : 덧셈 ..