-2
進出口試圖創建該存儲過程:錯誤創建存儲過程
CREATE PROCEDURE GetExif
(
IN @album VARCHAR(50),
IN @pic VARCHAR(50)
)
BEGIN
SELECT CAMERA,
FSTOP,
EXPOSURE,
ISO,
FOCALLENGHT,
DATETAKEN,
GPSLATH,
GPSLONG
FROM EXIF
WHERE ALBUMNAME = @album
AND PICTURENAME = @pic
END
我得到這個錯誤
#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 '@album VARCHAR(50), IN @pic VARCHAR(50)) BEGIN
SELECT CAMERA, FSTOP, ' at line 3
的選擇優良工程。
MySql的Serverversion是5.0.51a日誌
取出@s後即時得到這個錯誤
#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 'END' at line 20
這絕對是一個錯誤,猜測是想着mssql而不是mysql。但那不是唯一的錯誤 – CruelIO
你錯過了一個分號。您應該閱讀鏈接的文檔。 –