成都创新互联网站制作重庆分公司

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://cxhlcq.com/article/geigos.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部