我可以在 DB2 的 from 子句中放入 update 或 create 语句吗?

发布于 2024-09-03 05:25:31 字数 37 浏览 0 评论 0 原文

我可以在 DB2 的 from 子句中使用 DML 吗?谢谢

Can I use DML in from clause in DB2? thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

强辩 2024-09-10 05:25:31

DB2 V9 SQL 参考 声明 FROM 子句只能包含表引用:

     .-,---------------.   
     V                 |   
>>-FROM----table-reference-+-----------------------------------><

“表引用”的描述就在其正下方,因此它会准确地告诉您允许的内容以及什么是不允许的。表引用可以包括“数据更改表引用”,其中之一是“NEW TABLE”。也许这就是您所追求的,但正如其他人已经说过的,如果不知道您要做什么,就很难回答这个问题。

表引用的 SQL 语法图(向下滚动页面约 1/4)

The DB2 V9 SQL Reference states that the FROM clause can only contain a table-reference:

     .-,---------------.   
     V                 |   
>>-FROM----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)

祁梦 2024-09-10 05:25:31

你为什么要这么做?我想我从来没有在 SQL 语句中看到过这样的情况......

Why would you do that? I don't think I've ever seen that in an SQL statement...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文