Ora-00905缺少关键字错误

时间:2013-10-23 07:24:29

标签: oracle

我在执行以下行时遇到错误,

SELECT  * INTO employee_Backup  FROM employee

错误:

Ora-00905缺少关键字错误

2 个答案:

答案 0 :(得分:2)

您的查询应该是

INSERT INTO employee_backup 
  SELECT * 
  FROM employee

讨论here

语法是

INSERT INTO table_name
  SELECT * 
  FROM table_name

答案 1 :(得分:1)

这是您尝试使用的sql-server语法。 Oracle等价物将是:

INSERT INTO employee_backup
(SELECT * FROM employee)