日期:2014-05-17  浏览次数:20750 次

.net 一次执行多个oracle sql 语句
在。net C# 语句中 如何定义一个sql y语句 同时执行两个 update 语句

  string sql=@"update table set name1='aa' where id='bb';
  update table set name2='aa' where id='cc'";

 执行报错,无效字符

 求解 求 解 求解 !!!!!!!!!一定需要存储过程吗

------解决方案--------------------
分号去掉换成空格
C# code
string sql = @"update table set name1='aa' where id='bb'
                               update table set name2='aa' where id='cc'";