데이터를 선택해서 가져오겠다는 의미select * from orders
where payment_method = "kakaopay";select * from point_users
where point > 20000;!=select * from orders
where course_title != "웹개발 종합반";betweenselect * from orders
where created_at between "2020-07-13" and "2020-07-15";inselect * from checkins
where week in (1, 3);likewhere email like 'a%' email 필드값이 a로 시작하는 모든 데이터where email like '%a' email 필드값이 a로 끝나는 모든 데이터where email like '%co%' email 필드값에 co를 포함하는 모든 데이터where email like 'a%o' email 필드값이 a로 시작하고 o로 끝나는 모든 데이터limitselect * from orders
where payment_method = "kakaopay"
limit 5;distinctselect distinct(payment_method) from orders;countselect count(*) from orders사실 MySQL을 다뤄보는건 처음이 아니다 대학교를 다니면서 데이터베이스 시스템 설계 수업 때 다뤄 본적이 있다. 그래서 인지 쉽게 슥슥 들을 수 있었다.
백준 알고리즘 푸는데 시간을 생각보다 많이 잡아먹는다. 무작정 풀기보다는 시간을 정해서 푸는 연습을 해보자, 결국 코테를 봐도 시간은 정해저 있으니까
TMI
오늘의 햄최몇?
- 햄최2