#select 列名
from 表名
where 行筛选条件
1.所有列
*可以代指所有列
#使用通配符“*”查询student表中所有数据
select *
from student
#使用通配符“*”查询student表中所有女生数据
select *
from student
where sex="女"
2.部分列
如果只想显示部分列信息,把列名写出来,语法
select col_name1,col_name2.....
#查询student表中学号,姓名
select studentid,studentname
from student
3.列函数
系统中自带一些函数,可以对数据进行处理
修改别名:col_name as "别名"
查询每个同学的学号,姓名,年龄(以2021年为计算标准)
#查找年龄大于30的人
select studentid,studentname,age
from(
<