oracle 为什么不支持在单个查询中更新多个表? [英] Why don't oracle support Updating multiple table in a single query?

查看:41
本文介绍了oracle 为什么不支持在单个查询中更新多个表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的sql有效吗?

UPDATE suppliers, contacts
SET suppliers.status = 'Active',
    contacts.note = 'Also Supplier'
WHERE suppliers.supplier_id = contacts.contact_id;

但是 oracle 不支持.为什么?

but oracle is not supporting. why?

如何更新两个表在 SQL Server 2005 中的一个语句中?

推荐答案

,提供的 sql 无效.

No, the sql supplied is NOT valid.

正如其他人在评论中所述,您提供的链接是关于是否可以在 SQL Server 中的单个语句中更新多个表的问题.
这个问题的答案也是

As others have stated in the comments, the link you supplied is a question about if you can update multiple tables in a single statement in SQL Server.
The answer to that question is also No

这篇关于oracle 为什么不支持在单个查询中更新多个表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆