若同样结构A和B,用A产生B:
select * into B from A where 1 = 2

解决方案 »

  1.   

    sybase.sqlserver
    若同样结构A和B,用A产生B:
    select * into B from A where 1 = 2
    oracle
    create table b as select * from a where rownum<1
      

  2.   

    tj_dns(愉快的登山者)is right
      

  3.   

    若同样结构A和B,用A产生B:
    select * into B from A where 1 = 2
    --where 1=2?
      

  4.   

    select * into B from A where 1 = 2
    这个where 1=2什么意思呀?
      

  5.   


    select * into B from A where 1 = 2和select top 0 * into b from a 一样
    目的是只返回结构不返回数据
    应为1=2永远不成立,所以不会返回数据