读书人

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

发布时间: 2012-09-13 09:51:53 作者: rapoo

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

读书人网 >C#

热点推荐