我可以在 DB2 的 from 子句中放入 update 或 create 语句吗?
我可以在 DB2 的 from 子句中使用 DML 吗?谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我可以在 DB2 的 from 子句中使用 DML 吗?谢谢
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
DB2 V9 SQL 参考 声明 FROM 子句只能包含表引用:
“表引用”的描述就在其正下方,因此它会准确地告诉您允许的内容以及什么是不允许的。表引用可以包括“数据更改表引用”,其中之一是“NEW TABLE”。也许这就是您所追求的,但正如其他人已经说过的,如果不知道您要做什么,就很难回答这个问题。
表引用的 SQL 语法图(向下滚动页面约 1/4)
The DB2 V9 SQL Reference states that the FROM clause can only contain a table-reference:
The description of "table-reference" is directly below that, so it will tell you exactly what is allowed and what is not allowed. A table-reference can include "Data change table references," one of which is "NEW TABLE." Maybe that's what you're after, but as other people have already said, without knowing what you're trying to do, it's hard to answer the question.
SQL Syntax diagram for table-reference (scroll about 1/4 down the page)
你为什么要这么做?我想我从来没有在 SQL 语句中看到过这样的情况......
Why would you do that? I don't think I've ever seen that in an SQL statement...