2013-10-23 76 views

回答

2

您的查詢應該是

INSERT INTO employee_backup 
    SELECT * 
    FROM employee 

討論here

而且語法

INSERT INTO table_name 
    SELECT * 
    FROM table_name 
+0

如果我執行「INSERT INTO employee_backup SELECT * FROM empl oyee「,我得到ORA-00942表或視圖不存在。 – Srinivasan

+0

@Srinivasan你沒有employee_backup表,對不對? –

+0

@Srinivasan嘗試CREATE TABLE employee_backup AS(SELECT * FROM employee); –

1

這是SQL服務器的語法,正在嘗試使用。 甲骨文相當於是:

INSERT INTO employee_backup 
(SELECT * FROM employee)