不会的我在asp里是这样用的 strSql="....." cnn.execute strsql if cnn.Errors.Count>0 then cnn.Errors.Clear cnn.RoolBackTrans response.write "更新数据时出现错误,请重新提交" response.end end if strSql="......" cnn.execute strsql if cnn.Errors.Count>0 then cnn.Errors.Clear cnn.RoolBackTrans response.write "更新数据时出现错误,请重新提交" response.end end ifcnn.CommitTrans
strSql="....."
cnn.execute strsql
if cnn.Errors.Count>0 then
cnn.Errors.Clear
cnn.RoolBackTrans
response.write "更新数据时出现错误,请重新提交"
response.end
end if
strSql="......"
cnn.execute strsql
if cnn.Errors.Count>0 then
cnn.Errors.Clear
cnn.RoolBackTrans
response.write "更新数据时出现错误,请重新提交"
response.end
end ifcnn.CommitTrans