首页 > 数据库技术 > 详细

常用sql语句

时间:2015-07-06 12:05:00      阅读:247      评论:0      收藏:0      [点我收藏+]

select * from 表名 where id = ‘226‘

and  amt in (‘1‘,‘10‘)

and nbr=‘2‘

order by gmt desc;


update 表名 set gmt=now() where nbr=‘20‘           更新为现在时间

update 表名 set gmt=‘2015-06-30 14:00:51.076000‘ where nbr=‘20‘  更新为指定时间

 

select * from 表名  where biz  like ‘2015%‘  模糊查询

delete  from 表名; 删除一个表

 

常用sql语句

原文:http://www.cnblogs.com/s1328/p/4623854.html

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