有关DML.RETURNING.CLAUSE和subquery

chenxiaofeng 2004-09-20 04:03:19
有关subquery:

Pro*C是否支持joined table作subquery?如:
exec sql select c1 from (select c1 from ((select c1 from a) natural join (select c1 from b)));

有关DML.RETURNING.CLAUSE:

Pro*C是否支持INSERT用subquery(即不带关键字VALUES)时,再带上DML.RETURNING.CLAUSE?

我的答案是:都不能。请各位大侠指正。

环境:
Pro*C/C++: Release 9.2.0.1.0 - Production on 星期一 9月 20 16:18:28 2004
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

...全文
64 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
drabit 2004-09-20
  • 打赏
  • 举报
回复
1。支持,不过要用dynamic sql
char sql[]="select c1 from (select c1 from ((select c1 from a) natural join (select c1 from b)))"

exec sql prepare s from sq;
exec sql declare c cursor for s;
exec sql open c;
...

2.支持,但是oracle dynamic sql method 4部支持,ansi dynamic sql method 4支持

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧