h5的网站商标做网站logo
学前须知



sqlzoo数据介绍

world





nobel




covid




ge




game、goal、eteam














teacher、dept





movie、casting、actor














基础语句

select&from



SELECT from WORLD Tutorial - SQLZoo
基础查询select单列&多列&所有列&别名应用
例题一


SELECT name, continent, population FROM world
例题二


SELECT * FROM world
例题三



SELECT name as 国家名,continent 大洲,population 人口 from world

as是可以不加的,一般直接用空格代替
select使用distinct去重

例题四



SELECT distinct continent from world
例题五




SELECT distinct name, continent from world


SELECT name,distinct continent from world
select计算字段的使用


例题六


SELECT name,gdp,population,gdp/population 人均gdp from world
总结

where



运算符

