你使用方法错误,这样才是正确的。
insert into newtable select * from tljf.saleface2 WHERE to_char(enddate,'yymm') <> '0504'

解决方案 »

  1.   

    insert into newtable select * from tljf.saleface2 WHERE to_char(enddate,'yymm') != '0504'
      

  2.   

    create  table tablename
    as
    select  columnName...... from tableName
      

  3.   

    两位,我使用select创建新表newtable阿,你们的语句要先创建newtable才能使用
      

  4.   

    你的语法好象是 sqlServer中的吧
      

  5.   

    create table newtable as
    select * FROM tljf.saleface2 WHERE to_char(enddate,'yymm') <> '0504'
      

  6.   

    oracle中用select 创建一个新表用:create table 新表名 as
    select * FROM 原表名 where 条件
      

  7.   

    那你不说得清楚一点,看你写的语句,以为你的表已经创建好了。
    关于建表插入,楼上几位的解答了。create table newtable as
    select * FROM tljf.saleface2 WHERE to_char(enddate,'yymm') <> '0504'
      

  8.   

    select * into newtable from tljf.saleface2 where 1<>2 
    yong ci fang fa ke yi fu zhi he yuan biao yi yang de biao jie gou .
      

  9.   

    用select 创建新表应该就是这样吧。这种方法可以创建和原表一样的表结构。