Home > Software engineering >  To add a custom database columns
To add a custom database columns

Time:10-06

I want to achieve in the edit input column names, such as "properties", then the attribute the strings to the str1, reoccupy
Alter table text add str1 varchar (20) is added to the database, but isn't the database to add the column attribute, but str1,
Could you tell me how to solve a great god!!!!!! I am a rookie, be badly in need of help, thank!!!!!!

CodePudding user response:

Must be your SQL statements patchwork have a problem

CodePudding user response:

Try the insert

CodePudding user response:

Formatting
Cstrings szSQL;
SzSQL. The Format (_T (" alter table text add % s varchar (20) "), str1);

CodePudding user response:

The SQL statement after joining together, print it out and see, if there are problems such as the field name

CodePudding user response:

reference zgl7903 reply: 3/f
formatting
Cstrings szSQL;
SzSQL. The Format (_T (" alter table text add % s varchar (20) "), str1);
or not ah
  • Related