Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了一个“emp”表和“audit”表,然后我想从 emps table 更新审计表。
然后错误不断出现,有谁能解决这个问题?
是什么select emps?
select emps
大概你想要这样的东西:
insert into audit ( . . . ) select new.emp_name, new.dept_name, . . . ;
new是您引用新值的方式。
new
(或者,如果您想要旧值,请使用old。)
old