select的使用
查询数据的执行顺序
插入数据
我们先插入数据,也复习一下前面的知识点
insert into student values
('ppd','19','男'),
('jack','20','女'),
('ben','21','男')
查询所有列
select *from student
查询指定列
select name from student
查询所有列并以中文显示
select name 名字, age 年龄 from student 学生表
查询指定学生姓名的所有数据
select *from student where name = 'jack'
查询满足条件的数据
select *from student where age>20