gpt4 book ai didi

sql - 从 Oracle 中的选择创建表

转载 作者:太空狗 更新时间:2023-10-30 01:54:03 25 4
gpt4 key购买 nike

我想做这样的事情:

create table NEW_TABLE (select * from OLD_TABLE where id=3582)

并根据该 select 语句的结果列创建一个新表。

我敢打赌这在 mySQL 中是可能的,但如何在 Oracle 中做到这一点?

最佳答案

试试这个:

CREATE TABLE new_table AS select * from OLD_TABLE where id=3582

关于sql - 从 Oracle 中的选择创建表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8594282/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com