简体   繁体   中英

Mysql query throw the 1054 unknown column error?

my Mysql query throw the 1054 unknown column interleaving.pdf?

SELECT user_id,doc_id,name
FROM `get_edoc_details`
WHERE user_id=290
  AND doc_id=1
  AND name=interleaving.pdf;

You'll need to enclose the value of the field in quotes as it is a string.

SELECT user_id,doc_id,name FROM `get_edoc_details`
WHERE user_id=290 AND doc_id=1 AND name='interleaving.pdf';

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