編輯:謝謝你們。這真的只是我複製的源代碼中的單引號標記的格式錯誤。非常感謝!
SQL - 填充表
代碼:
USE Library;
INSERT INTO myLibrary VALUES (
‘SQL Bible’
,‘Alex Kriegel’
,‘Boris M. Trukhnov’
,‘Wiley’
,888
,‘April 7,2008’
,‘978-0470229064’
,‘English’
);
輸出:
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near '‘'.
問題
有什麼問題嗎?我是SQL新手。提前致謝!
你需要直引號:'''對於字符串文字,而不是那些奇怪的捲曲''' –