我在SQL-Server里有一个存储过程 person 需要传递两个参数 name和age, 其中 age可空在SQL语句里我可以执行 exec person 'Tony', null 来执行而在C#语言中  我尝试这么做SqlCommand myCommand;
myCommand.Parameters.AddWithValue("@name", “Tony”);
myCommand.Parameters.AddWithValue("@age", null);但这样做失败了, 问题可能出在null上,我想可能是数据库把它当成 "null" 字符串之类的东西了
各位有谁遇到过类似的问题?  小弟急呀,解决不了明天就难过了