select(查询)的使用

来源:互联网 发布:数据分析是什么 编辑:程序博客网 时间:2024/05/21 10:12

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
0 0
原创粉丝点击