由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Is Oracle ODBC support batch SQL(PL/SQL procedure)?
相关主题
sql数据库实时更新问题Oracle SQL*Plus 的密码是啥阿?
Re: [转载] JDBC用完了oracle的large pool (memorHow to get SQL help in sqlplus?
help! oracle8i client installation on Windows2000/NT4how to test the database, or test SQL?
How to change Default Buffer Size for Long Columns?(string size exceeds 1K)How to send BLOB images to remote database?
JDBC问题一问请教一下一个关于SQL SERVER非常基本的问题
SQL question公司要升级了,问题
如何在oracle8i中得到视图和表的定义?How to display chinese characters in Oracle SQL*Plus?
editting .sql file problem求救,咋样架起来自己的database?
相关话题的讨论汇总
话题: sql话题: pl话题: odbc话题: batch话题: insert
进入Database版参与讨论
1 (共1页)
h****r
发帖数: 2056
1
Try to use batch SQL like
"begin
insert into table1 values('0', 0);
insert into table1 values('1', 1);
end /"
it works fine in SQLPLUS as a SQL statment,
but use it in ODBC programming it will not works fine,
any shrimps has experiences on it, please share your
idea, thanks a lot.
z*q
发帖数: 29
2
As I know, to use batch insert/update, you should use
record/collection/table_of_record type in PL/SQL, just like the following:
forall i in tbl_interval_meter.first .. tbl_interval_meter.last
INSERT INTO interval_meter_temp VALUES tbl_interval_meter (i);
Your begin end code will work in PL/SQL, but is not a batch sql, it is just a
block in PL/SQL.
Hope it is useful.

【在 h****r 的大作中提到】
: Try to use batch SQL like
: "begin
: insert into table1 values('0', 0);
: insert into table1 values('1', 1);
: end /"
: it works fine in SQLPLUS as a SQL statment,
: but use it in ODBC programming it will not works fine,
: any shrimps has experiences on it, please share your
: idea, thanks a lot.

1 (共1页)
进入Database版参与讨论
相关主题
求救,咋样架起来自己的database?JDBC问题一问
SQL Developer ORA-01017 错误SQL question
Sql developer connection issue如何在oracle8i中得到视图和表的定义?
比较sqlplus和sql developereditting .sql file problem
sql数据库实时更新问题Oracle SQL*Plus 的密码是啥阿?
Re: [转载] JDBC用完了oracle的large pool (memorHow to get SQL help in sqlplus?
help! oracle8i client installation on Windows2000/NT4how to test the database, or test SQL?
How to change Default Buffer Size for Long Columns?(string size exceeds 1K)How to send BLOB images to remote database?
相关话题的讨论汇总
话题: sql话题: pl话题: odbc话题: batch话题: insert