一般查询数据

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')

posted on 2017-03-08 14:37  EmperorFrist  阅读(124)  评论(0编辑  收藏  举报