首页 > 其他 > 详细

条件,高级查询

时间:2017-06-24 14:30:48      阅读:274      评论:0      收藏:0      [点我收藏+]

条件修改: 

update 表名 set 列名 = 值 where 列名 =值

条件删除:

delete from 表名 where 列名 = />=/<=/>/</!= 值   and   or

 条件查询

select * from 表名           查看列 将* 改成列名 查看多列列名之间用逗号隔开

筛选条件  :where 列名 =  值

模糊查询:select * from 表名 where 列名 like ‘%值%‘

排序查询:select * from 表名 where order by 列名 asc升序/desc降序  默认升序

去重查询:select distinct 列名 from 表名

分组查询:select  某一列名 from 表名 group by 对应的列名

子查询:将查询语句当坐直来使用

 

条件,高级查询

原文:http://www.cnblogs.com/skyhorseyk/p/7060487.html

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