Redian新闻
>
Is Oracle ODBC support batch SQL(PL/SQL procedure)?
avatar
Is Oracle ODBC support batch SQL(PL/SQL procedure)?# Database - 数据库
h*r
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.
avatar
z*q
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。