[英]Unexpected character. (near “?”)
我正在嘗試在phpMyAdmin中執行以下查詢,並且發生錯誤。我已經看過類似的問題,但是我仍然不知道為什么它不起作用。
INSERT INTO discussion_forum (event_type, title) VALUES ('edx.forum.thread.viewed', 'Which of the stories you've seen or read can you relate to? Why?')
靜態分析是
3 errors were found during analysis.
Unexpected character. (near "?" at position 143)
Unexpected character. (near "?" at position 148)
Ending quote ' was expected. (near "" at position 151)
感謝您的時間。
通過將它們加倍來逃避'
'Which of the stories you''ve seen or read can you relate to? Why?'
字符串中有引號('),應使用反斜杠(\\)對其進行轉義
INSERT INTO discussion_forum (event_type, title) VALUES
('edx.forum.thread.viewed', 'Which of the stories you\'ve seen or read can you relate to? Why?')
您的問題是“ this”,因此您需要像下面這樣更改
INSERT INTO discussion_forum (event_type, title) VALUES ('edx.forum.thread.viewed', 'Which of the stories you\'ve seen or read can you relate to? Why?')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.