MySQL Error 1054

Source: Internet
Author: User

Problem, when querying data, the input string is a number, you can query, but when you enter an alphabetic string but can not query, always prompt error 1054

Workaround: Enclose the string in single quotation marks

  field corresponding to the value if it is a character or string type, when applied in English single quotation marks, you should use the anti-quotation marks, that is, the English input method when the number 1 keys to the left of the key,
The function of this tag is to treat the content as a simple character, usually to solve the situation where the meaning of the expression conflicts with the keyword, such as CREATE table user ... Will error,
You can use CREATE table ' user ' ... or CREATE table ' table ' ...

MySQL Error 1054

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.