The error message suggests that there is a syntax error in your SQL query. It seems that you are trying to insert data into a table, but the syntax is incorrect. The correct syntax for an INSERT statement in MySQL is as follows:

INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);

Based on the error message, it appears that you are missing the INSERT INTO statement and the table name. Additionally, make sure you are specifying the column names correctly.

Here's an example of a correct INSERT statement:

INSERT INTO users (name, password, sex, birthday, registTime, age)
VALUES ('钱六', '123456', 'Male', '1990-01-01', '2021-01-01', 31);

Replace users with the actual table name you are trying to insert data into, and adjust the column names and values accordingly

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near wherenamepasswordsexbirthdayregistTimeage values钱六123456 at

原文地址: https://www.cveoy.top/t/topic/hYhP 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录