2010-11-23 25 views
0

我試圖使用phpMyAdmin將某些記錄備份到同一個數據庫中的單獨表。這裏是查詢和它拋出的錯誤。兩張表都存在並拼寫正確;我直接從他們的結構頁面複製並粘貼表名。任何想法,爲什麼我得到這個錯誤?mysql錯誤 - 表名引發未聲明的變量

SELECT * 
INTO `arrc_VoucherBAK` 
FROM `arrc_Voucher` 
WHERE ActivatedDT LIKE "2010-11-10%" 
AND BalanceInit IS NOT NULL 


MySQL said: Documentation 
#1327 - Undeclared variable: arrc_VoucherBAK 
+0

不,無論哪種方式 - 引號或不 - 我得到了同樣的錯誤。 – EmmyS 2010-11-23 18:36:19

+0

可能的重複 - http://stackoverflow.com/questions/2949653/select-into-and-undeclared-variable-error – Vishal 2010-11-23 18:38:21

回答