无法将数据插入新列

发布于 2025-01-11 11:21:04 字数 346 浏览 0 评论 0原文

您好,我正在尝试编写电子邮件代码,以在 Oracle APEX 的交互式网格中自动更新。它一直说我的列标识符需要定义,但它是由每个表定义的。 输入图片此处描述

select 
t.email into O.email
from Master_Tech_Email t, MASTER_COURSE_OWNER O 
where O.Technology = t.Technology;

Hi I'm trying to write code for an email to auto update in an interactive grid in Oracle APEX. It keeps saying that my column identifier needs to be defined however it is defined by each table.
enter image description here

select 
t.email into O.email
from Master_Tech_Email t, MASTER_COURSE_OWNER O 
where O.Technology = t.Technology;

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

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

发布评论

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

评论(1

茶花眉 2025-01-18 11:21:04

我认为是对成句的误解。

如果您想根据技术列更新 MASTER_COURSE_OWNER 表中的电子邮件列,请尝试此

(Because of tags include sql and oracle I am sharing both of it)

对于 Oracle:

UPDATE MASTER_COURSE_OWNER SET EMail = (SELECT Email FROM Master_Tech_Email WHERE Technology = MASTER_COURSE_OWNER.Technology AND ROWNUM = 1)

我正在为 Oracle 这里

For SQL:

UPDATE MASTER_COURSE_OWNER SET EMail = (SELECT TOP(1) Email FROM Master_Tech_Email WHERE Technology = MASTER_COURSE_OWNER.Technology)

我在此处放置了 SQL 的实时示例

I think a misunderstanding into clause.

If you want to update email column in MASTER_COURSE_OWNER table based on Technology column try this

(Because of tags include sql and oracle I am sharing both of it)

For Oracle:

UPDATE MASTER_COURSE_OWNER SET EMail = (SELECT Email FROM Master_Tech_Email WHERE Technology = MASTER_COURSE_OWNER.Technology AND ROWNUM = 1)

I am putting a live sample for Oracle here

For SQL:

UPDATE MASTER_COURSE_OWNER SET EMail = (SELECT TOP(1) Email FROM Master_Tech_Email WHERE Technology = MASTER_COURSE_OWNER.Technology)

I am putting a live sample for SQL here

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