How to insert data error?

Source: Internet
Author: User
[Code=sql]
[INSERT into ' Test ' (' id ', ' uid ', ' regdate ', ' remark ') VALUES ([],[xiaoming],[now ()],[software engineer])
/code]


Reply to discussion (solution)

INSERT into ' test ' (' id ', ' uid ', ' regdate ', ' remark ') VALUES (', ' xiaoming ', now (), ' software engineer ')

INSERT into ' test ' (' uid ', ' regdate ', ' remark ') VALUES (' Xiaoming ', now (), ' software engineer ')

INSERT into ' test ' (' id ', ' uid ', ' regdate ', ' remark ') VALUES (' ', ' Xiao Zhang ', ' Now () ', ' workers ')
Help me to look at this error, this is true, but every time you have to make such a mistake

INSERT into ' test ' (' id ', ' uid ', ' regdate ', ' remark ') VALUES (', ' xiaoming ', now (), ' software engineer ')


It would be better if you could help me see where I was wrong, thank you.

Now () is a function of MySQL, enclosed in quotation marks, it becomes a string.

Now () is a function of MySQL, enclosed in quotation marks, it becomes a string.


A change, a mistake.

If you are wrong, you will post the wrong message!

Paste the type, uid for Xiao Ming? It is possible that your UID is of type int ... Pure speculation.

So what about INSERT into ' test '? should be INSERT into ' test ' or nsert into test

So what about INSERT into ' test '? should be INSERT into ' test ' or nsert into test

The moderator is really careful.

Test keyword = ' test '

  • 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.