본문 바로가기

SQL

SQL

In this post, let me do some basic SQL from free data.

 

 

 

mysql> show tables;

 

 

 

mysql> select * from city limit 10;

 

 

mysql> select * from city where CountryCode like '%USA%' limit 10;

 

 

mysql> select * from city where Population > 6000000 and Population < 8000000;

 

 

mysql> select * from city where CountryCode like '%OR%' limit 10;

 

 

mysql> select * from city where Population < 500 order by Population desc;

 

 

'SQL' 카테고리의 다른 글

[mysql] concat, substring, if, case, case + if  (0) 2020.07.15
[mysql] Subbranch, group by, having, rollup  (0) 2020.07.02
[mysql] join, union  (0) 2020.06.27