stringsql ="update Table1 set name = 'Pudding' where ID = '1'";//未采用SqlParameterSqlParameter sp =newSqlParameter("@name","Pudding");//采用SqlParameter第二句@name中@有什么作用应该是stringsql ="update Table1 set name =@name where ID = '1'";//未采用SqlParameterSqlParameter sp =newSqlParameter("@name","Pudding");//采用SqlParameter就是给@name变量赋值"Pudding"