Use SQL statements ALTER TABLE test0102 ADD COLUMN 102 FLOAT; No,
Tip Error: Error Code: 1064. 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 at line 1 '102 FLOAT'
Using the mysql5.5 version,
There are a few questions:
1, using dynamic SQL statements add integer as the name of the field, not feasible?
2, set up form, whether it is not recommended to integer to name field?
3, is there any way can realize the dynamic increase integer name field?
Have encountered the same problem or experienced, please comment
CodePudding user response:
Use the quotation marksThe ALTER TABLE test0102 ADD COLUMN, 102, FLOAT;
CodePudding user response:
Generally is not recommended in digital field name, where used to add the quotes, appear troubleDynamically add that statement is executed directly you
Use the workbench, also have generated operating statements for you, you pay attention to
CodePudding user response:
Do not recommend using integer as a column name or show that cannot represent the meaning of the column ofThe time like to name the child's name will not in the same way as a digital
Only to prisoners to take digital code,,,
CodePudding user response: