首页 > 其他 > 详细

查询语句

时间:2014-11-23 17:12:21      阅读:238      评论:0      收藏:0      [点我收藏+]

查询语句

select *from  student  where  xuhao = 1

查询student表中xuhao一列中为1号的

select *from  student  where  xuhao < 2

查询student表中xuhao一列中学号小于2的

select *from  student  where  xuhao < 5 and 学号 > 3

查询student表中xuhao一列中学号小于5并且小于3的

 

运算符:

数学运算符:+  -  *  /  %

复制运算法:=

比较运算符:>  <  <=  >=  !=  <>  !<  !>  =

逻辑运算符:and  or

优先级顺序:

先*  /  %  在+  -  然后是赋值=  再是比较运算符  最后是逻辑运算符

 

 

 

查询语句

原文:http://www.cnblogs.com/XMH1217423419/p/4116656.html

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