首页 > 其他 > 详细

第六章 过滤数据

时间:2016-11-26 11:46:52      阅读:209      评论:0      收藏:0      [点我收藏+]
1.使用where语句:
select column_name_0 from table_name where column_name_1 = value;

select column_name_0 from table_name where column_name_1 = value order by column_name_2 desc;

2.where 子语句操作符:
= 
<>			不等
!=
<
<=
>
>=
between

select column_name_0 from table_name where column_1 between value_0 and value_1;

3.空值检查:
在创建表的时候,可以指定其中的列是否可以不包含值。在一个列不包含值时,称其为包含空值null,null 是无值的意思
is null 可以用来检查具有null值的列
select column_name_0 from table_name where column_name_1 is null;

  

第六章 过滤数据

原文:http://www.cnblogs.com/szn409/p/6103672.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!