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.
Insert into table1 values ((select * from table2), sysdate, 'open', Null, null);
这就是我想要运行的。我该如何编写这个查询?
使用 withVALUES子句的子查询只需要返回一行。如果您的查询返回多行,您可以将其重写如下:
VALUES
insert into table1 select t2.*, sysdate, 'open', null, null from table2 t2;