当前位置:Gxlcms > 数据库问题 > 数据库查询问题小记

数据库查询问题小记

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

一般查询数据

select * from table where key=‘123456abcd‘  and num=123456

查询数据某字段不为空的

select * from table where key is not  null

修改数据

upadte table set key=‘123‘ where id=123

新增数据

insert into table(name,sex,age) values (‘张三‘,‘男‘,22)

新增数据并返回新增数据ID

insert into table (Id,key, produceDate)  output inserted.id  values (349,‘23ss‘, ‘2017-03-08 00:00:00‘)

数据库查询问题小记

标签:sel   查询   bsp   rod   ble   adt   date   insert   数据库查询   

人气教程排行