Time:12-04
CodePudding user response:
I want to use c + + code to realize the new table in MySQL, What function? (can give the C language function, when the time comes I wrapped)
to use MSSQL SDK
Quote: refer to the original poster abcd7038 response: I want to use c + + code to implement the new table in MySQL, What function? (can give the C language function, when the time comes I wrapped) String createtablestr="CREATE TABLE IF NOT EXISTS user_Manage (` ID ` int (11), NOT NULL AUTO_INCREMENT, ` USER ` varchar (32) NOT NULL, ` PWD ` varchar (32) DEFAULT NULL, PRIMARY KEY (` ID `, ` USER `)) ENGINE=InnoDB DEFAULT CHARSET=utf8"; Mysql_query (PSQL, createtablestr c_str ());
I want to use c + + code to implement the new table in MySQL, What function? (can give the C language function, when the time comes I wrapped)
Quote: reference 1/f, Simple, Soft reply: to use MSSQL SDK Details of which function? Parameter is?
Quote: refer to the third floor abcd7038 response: Quote: reference 1/f, Simple, Soft reply: to use MSSQL SDK Details of which function? Parameter is? To install mysql connector
I already installed ODBC
CREATE TABLE student (Sno char (5) primary key, Sname char (8) Sdept char (2) NOT NULL Sclass char (2) NOT NULL Sage numeric (2) );
I am using MySQL, use the CREATE statement to CREATE a new table, such as establishing a student table (student id, name, department, class, age) : CREATE TABLE student (Sno char (5) primary key, Sname char (8) Sdept char (2) NOT NULL Sclass char (2) NOT NULL Sage numeric (2) ); In MySQL can also use the graphical interface to create a table: table - new & gt; Add fields - & gt; Design what you need to watch some of the properties listed
Quote: refer to the eighth floor Liu Dadong response: is to use MySQL, I use the CREATE statement to CREATE a new table, such as establishing a student table (student id, name, department, class, age) : CREATE TABLE student (Sno char (5) primary key, Sname char (8) Sdept char (2) NOT NULL Sclass char (2) NOT NULL Sage numeric (2) ); In MySQL can also use the graphical interface to create a table: table - new & gt; Add fields - & gt; Design what you need to watch some of the properties listed This you use the CMD command line statement?
is to use MySQL, I use the CREATE statement to CREATE a new table, such as establishing a student table (student id, name, department, class, age) : CREATE TABLE student (Sno char (5) primary key, Sname char (8) Sdept char (2) NOT NULL Sclass char (2) NOT NULL Sage numeric (2) ); In MySQL can also use the graphical interface to create a table: table - new & gt; Add fields - & gt; Design what you need to watch some of the properties listed
Quote: references 9 f abcd7038 response: Quote: refer to the eighth floor Liu Dadong response: is to use MySQL, I use the CREATE statement to CREATE a new table, such as establishing a student table (student id, name, department, class, age) : CREATE TABLE student (Sno char (5) primary key, Sname char (8) Sdept char (2) NOT NULL Sclass char (2) NOT NULL Sage numeric (2) ); In MySQL can also use the graphical interface to create a table: table - new & gt; Add fields - & gt; Design what you need to watch some of the properties listed This you use the CMD command line statement? Yes, this is the command statements, is based on c + +, this method is more simple,
Page link:https//www.codepudding.com/Backend/91812.html