When creating a table in the commandlineclient of mysql

Source: Internet
Author: User
Tags float number
The following is my problem. The final solution is as follows: add a "something like single quotes" to the field of the int number. Note that it is not single quotes, an error will still be reported if you use single quotes. In addition, fields of the float type also have such a field, and such a field of the float number must also be enclosed in single quotes. In particular, the float field.

The following is my problem. The final solution is as follows: add a "something like single quotes" to the field of the int number. Note that it is not single quotes, an error will still be reported if you use single quotes. In addition, fields of the float type also have such a field, and such a field of the float number must also be enclosed in single quotes. In particular, the float field.

The following is my problem. The final solution is as follows: add a "something like single quotes" to the int + number field ",

Note that it is not a single quotation mark and an error will still be reported if it is a single quotation mark.

In addition, fields of the float type also have such a field, and fields of the float + number must also contain such a field as single quotes.

In particular, float is a mysql bug. It is not allowed only when float4 is used.

Of course, when creating a table in the command line today, we also found that the Varchar type field must specify the length of the string:

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.