我的SQL怎么不执行呀,大家帮我看看
我有两个SQL语句,一个可以执行,一个不能执行了
可以执行的:
string sqltext = "update smsmsg set issend=1,isSucess=1,sendMode=1,stime=getdate(),ret=" + result + " where id=" + smstest[k, 0];
SqlCommand cmdsql = new SqlCommand(sqltext, conn);
cmdsql.ExecuteNonQuery();
不能执行的:
string strsql1 = "insert into RecvMsg(Tele,msg,RecvTime) values('" + strmob + "','" + strcontent + "',getdate())";
SqlCommand cmdsql2 = new SqlCommand(strsql1, conn);
cmdsql2.ExecuteNonQuery();
这个是怎么回事情呀?
急呀!!!