猿问
SQL取值问题
SQL中B表中的 A字段有1,2,3,null。四个值
怎么取1,和null ,这两个值
翻过高山走不出你
浏览 477
回答 3
3回答
白衣染霜花
第一种方法:select * from B where A not in(2,3) 第二种方法:select * from B where A=1 or A is null
0
0
0
ibeautiful
select A from B where A=1 or A is null
0
0
0
UYOU
还有个问题是,where里面有很多查询条件这个只是其中一项,不能这么写
0
0
0
随时随地看视频
慕课网APP
相关分类
SQL Server
我要回答