码迷,mamicode.com
首页 > 其他好文 > 详细

查询语句

时间:2014-11-23 17:13:22      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:sp   bs   as   算法   nbsp   class   rom   数学   select   

查询语句

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

优先级顺序:

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

 

 

 

查询语句

标签:sp   bs   as   算法   nbsp   class   rom   数学   select   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!