在数据库中,有一张雇员表,其住址设置为NOT NULL
可是,在ADO.NET中插入一行时,住址为NULL,为什么可以正常插入?string strconn = "server = '(local)';database=Person;integrated security = true";
string strup ="INSERT INTO 雇员表 VALUES('张三',42,null)";
using (SqlConnection con = new SqlConnection(strconn))
   {
       con.Open();
       using (SqlCommand com = new SqlCommand(strup,con))   
          {
             com.ExecuteNonQuery();
          }
    }      执行后,我看了SQL Server,果然插入了,而且住址为空,请指教,谢谢!!!