由student1表的结构复制出student2表,不复制记录,只复制表结构!仅使用一条语句!

解决方案 »

  1.   


    create table b as select * from a where 1=2
      

  2.   

    "where 1=2"是什么意思啊?
    呵呵~!
      

  3.   

    #1楼正解,这是经常用到的一个SQL语句。
      

  4.   

    #1楼正解,这是经常用到的一个SQL语句。
      

  5.   

    create table student2 as (select * from student1) where 2=3;
    呵呵
      

  6.   

    create table student2 as (select * from student1) where 2=4 ;..............
      

  7.   

    create table student2 as select * from student1 where 1<>1 受不了
      

  8.   

    create table student2 as select * from student1 where 1 <>1
      

  9.   

    create table a select * from b;