0
我收到以下錯誤,同時運行我的代碼,如何自動填充mysql數據庫?
INSERT INTO
widgets
(id
,page
,location
,title
,content
,global
) VALUES right(1, '/', '', 'Welcome to Animal Rights Pakistan', 'Animal Rights Pakistan is a collaboratively edited question and answer site built to suit your needs.
\r\n\r\nIt''s easy to use, with no registration required!
\r\n\r\nco/questions/ask">ask a question
', 1);
錯誤:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'right(1, '/', '', 'Welcome to Animal Rights Pakistan', '<p>Animal Rights Pakista' at line 1
在此先感謝。
嘗試不帶'正確'的查詢〜 – goseo 2013-04-07 10:19:25
VALUES right應該是VALUES – Bart 2013-04-07 10:19:42