当前位置:Gxlcms > 数据库问题 > 常用sql语句

常用sql语句

时间:2021-07-01 10:21:17 帮助过:2人阅读

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语句

标签:

人气教程排行