【发布时间】:2015-11-02 05:37:23
【问题描述】:
我正在使用 Visual Studio 2013 和 oracle 数据库。我想在单个 oracle 命令中一次执行多个创建表查询,这可能吗?我正在尝试关注但不工作
OracleCommand cmd = new OracleCommand();
cmd.Connection = con;
cmd.CommandText = "create table test(name varchar2(50) not null)"+"create table test2(name varchar2(50) not null)";
//+ "create table test3(name varchar2(50) not null)"+"create table test3(name varchar2(50) not null)";
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
在 cmd.ExecuteNonQuery() 处出错;
【问题讨论】:
标签: c# oracle visual-studio plsql