0
我在MySql中編寫了一些程序而不是MS SQL,而且我的語法有點問題。MySql存儲過程幫助
CREATE PROCEDURE spAddUser
(
IN pUsername Varchar(20),
IN pPassword Varchar(16),
IN pFirstname Varchar(20),
IN pSurname Varchar(20),
IN pEmail Varchar(50),
IN pWebsite Varchar(50)
)
BEGIN
INSERT INTO
users
(Username, Password, Firstname, Surname, Email, Website)
VALUES
(pUsername, pPassword pFirstname, pSurname, pEmail, pWebsite);
END;
這是代碼我想出了到目前爲止,只是一個基本的添加用戶PROC,但我不斷收到此錯誤:
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 'pFirstname, pSurname, pEmail, pWebsite)' at line 15
任何想法我做錯了嗎?
謝謝,我一直在盯着代碼的方式太長了!雖然它仍然不喜歡語法lol – Purplegoldfish 2011-02-22 22:53:00
似乎使用不同的分隔符幫助。謝謝您的幫助 – Purplegoldfish 2011-02-22 22:54:52