Love about the Internet: weibo. comu39239000088 step: the scripts exported by databaseGenerateDatabase must be adjusted in the following places: mysql5.5 Test Result: 1: fields with autocreament. The primary key constraint must be placed in the table creation statement and cannot be added outside through alter. This field must be the primary key. Example: CRES
Love Chat network that thing: http://weibo.com/u/3923942488 step: database = GenerateDatabase export scripts need to be adjusted are: mysql5.5 test results: 1: With autocreament field, the primary key constraint must be placed in the table creation statement. It cannot be added outside the table by using alter. This field must be the primary key. Example: CRES
Love Chat network that thing: http://weibo.com/u/3923942488
Step: database => GenerateDatabase
The exported scripts must be adjusted in the following ways:
Mysql5.5 test results:
1: fields with autocreament. The primary key constraint must be placed in the table creation statement. It cannot be added outside by using alter. This field must be the primary key.
For example:
Create table t_sys_group
(
Id int not null AUTO_INCREMENT,
Group_name VARCHAR (10) not null,
Description VARCHAR (255 ),
Builder VARCHAR (10) not null,
Build_time datetime not null,
Primary key (id)
);
# Alter table t_sys_group
# Add primary key (id );