第四次课程
2018-10-23 本文已影响15人
By丶久绊成影
一、查询
-
在数据库中的简单的查询操作
select * from
:表名
select
: 选择的意思
*
:表示所有的列
form
:来自于 -
一般情况
select 列名1,列名2,..... from 列名
从表名中选择列1、列2,....等等中的数据
二、根据条件的查询
select 列名1,列名,.....from 表名 where条件
三、查询空行
select * from 表名 where 列名 is mull;
查询不为空
**`select * from 表名 where 条件 order by 列名 asc
order by 排序 asc升序 排序