2
string query = 
  "select  User_name, User_Second_Choice 
   from tbl_User where User_Assigned_Project ='"+NULL+"'";

我尝试选择要更新的行,所以我该如何更改 User_Assigned_Project = '"+NULL+"'";

谢谢你。

4

1 回答 1

6

使用IS NULL而不是 '= NULL'

select User_name, User_Second_Choice 
from tbl_User where User_Assigned_Project IS NULL
于 2013-10-25T01:42:14.440 回答