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.
请帮我解决这个问题。我试图在 SQL 9i 中将表结构从一个用户复制到另一个用户。你能帮我解决这个问题吗?我对如何将表从一个用户复制到另一个用户有一些想法,但我不知道如何只复制没有记录的表结构。
甲骨文:
create table new_table as select * from old_table where 0 = 1
sql服务器:
select * into new_table from old_table where 0 = 1
在 Oracle9i 中,我们还可以从以下查询中复制表结构:
create table copy_course as select * from course where 1=2;