报错:
正确:
使用 cmd3.Parameters.AddWithValue("@prediction_date_ID", 4); 这一句话就报错 但是直接拼接字符串就正常,为什么会这样?
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
直接用SqlTransaction类(conn.BeginTransaction),不要在sql中使用begin tran和commit
可以了 谢谢