createtableasselectwhere1=0会把null和notnull属性也带上
create table emp_dept_txt as select first_name,last_name,email,phone_number,department_name from employees ,departments where employees.department_id=departments.department_id and 1=0;
SQL> select * from emp_dept_txt;
no rows selected
SQL> desc emp_dept_txt
Name Null? Type
----------------------------------------- -------- ----------------------------
FIRST_NAME VARCHAR2(20)
LAST_NAME NOT NULL VARCHAR2(25)
EMAIL NOT NULL VARCHAR2(25)
PHONE_NUMBER VARCHAR2(20)
DEPARTMENT_NAME NOT NULL VARCHAR2(30)
网页题目:createtableasselectwhere1=0会把null和notnull属性也带上
文章路径:
http://csdahua.cn/article/geigos.html
扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流