日期:2014-05-16 浏览次数:20487 次
string strCon ="Data Source=(local);DataBase=kaoshi;User id=sa;pwd=123";
string SqlCom="update chengji set chengji_TK=56 where StudentID='123' and LessonID='01'";
SqlConnection sqlCon = new SqlConnection(strCon);
sqlCon.Open();
SqlCommand sqlcom = new SqlCommand(SqlCom, sqlCon);