简体   繁体   中英

SQL Query Error: Unclosed Quote

I am trying to run a sql command:

SELECT *FROM wp_options WHERE option_name = 'active_plugins';

However I only get an error that there is an unclosed quote @ 45. I am not sure what is happening as there doesn't seem to be any confusing extra quotes. Is my syntax wrong? I am using mysql 5.1.

您需要在星号(*)和单词“ FROM”之间留一个空格。

试试这个变化:

Select * from wp_options where option_name = "active_plugins";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM