mySQL
-
mySQL 기초 문법( select, where, group by, order by, etc ) TILmySQL 2022. 11. 14. 22:51
신청해놓고 미뤄뒀던 mySQL 강좌를 들었다..! 국비지원 강의는 하루 8강 제한이 있어서 오늘부터는 들어야만 완강이 가능했기 때문.. 그냥 개인 저장용에 가까운 것들! 딱히 내가 개인적으로 탐구할만한 내용은 없어서 너무 단순해져버림 모르면 나가 디져야하는 기초내용들 show Tables -- Tables의 테이블 (?) 을 보는 명령어 select * from users -- users 테이블 의 모든데이터를 select, where email like "%@gmail.com" -- email 필드에서 모든 문자열@gmail.com 에 해당하는 조건을 걸고, and created_at between "2020-07-12" and "2020-07-14"; -- created_at 필드에서 두 날짜 사이라..
-
mySQL 기초적 코드들..mySQL 2022. 11. 3. 18:40
select * from orders where payment_method != 'CARD'; select * from point_users where point between 20000 and 30001; select * from users where email like 's%com' and name like '이%'; select distinct(payment_method) from orders limit 5; select count(*) from orders where payment_method = 'kakaopay'; select count(distinct(name)) from users