数据更新问题
string con=ConfigurationSettings.AppSettings["dsn"];
SqlConnection myConnection = new SqlConnection(con);
myConnection.Open();
SqlCommand sd=new SqlCommand("update db_Class set stunum=6 where classid="+04010102+"",myConnection);
myConnection.Close();
为什么更新不了呢?
[此贴子已经被作者于2006-12-18 15:11:43编辑过]