【发布时间】:2015-08-21 07:24:30
【问题描述】:
我遇到过
create table new_table as select * from old_table where 1=2;
where 1=2 条件的含义是什么,它执行什么功能?
【问题讨论】:
-
这是一个错字。应该是
1=0;) (根据查询创建表只是一个“黑客”,确保您获得正确的数据类型,但保证您在新表中没有任何行。)
标签: sql oracle ddl create-table