在PL/sql Developer 中执行以下语句insert into dbtable select '5','4'(dbtable 表只有两列,且都字符型)会弹出以下错误
FROM keyword not found where expected而该语句 在SQL server中正常执行求解,谢谢

解决方案 »

  1.   

    汗,这个不是SQL SERVER,
    insert into dbtable 
    select '5','4' from dual;
      

  2.   

    insert into dbtable as select '5', '4' from dual
      

  3.   

    靠,错了,想成 create table 了。。不要 as ,后面跟一个 from dual 就可以
      

  4.   

    不同于MS SQL Server。不能直接select '5','4'
    要select '5','4' from dual;
      

  5.   

    insert into dbtable  select '5', '4' from dual 
      

  6.   

    insert into dbtable select '5','4' from dual
    在PL/sql Developer 中能正常执行
      

  7.   

    insert into demotable
      select '5', '4' from dual;
    这么写吧 ORACLE和SQL SERVER在某些语法上是有区别的