首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

.net 一次施行多个oracle sql 语句

2012-09-13 
.net一次执行多个oracle sql 语句在。netC#语句中 如何定义一个sql y语句 同时执行两个 update语句stringsq

.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'"; 

热点排行