1. 程式人生 > >sql server查詢語句條件是否為NULL

sql server查詢語句條件是否為NULL

要查詢C列為空的記錄的SQL語句不是select * from table where c=null; 或者 select * from table where c=''; 而應當是 select * from table where c is null; 相反地要查詢不為空的則應當是 select * from talbe where c<>''; 或者 select * from table where c is not null; 注意:不是not is null哦。