常用sql语句

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 表名; 删除一个表

 

posted @ 2015-07-06 11:14  sky123123  阅读(129)  评论(0编辑  收藏  举报