Mysql database table columns in the operation

Table column operations Mysql database [1]

About Mysql in the list of operations set statement:

1  - [1] increase a 
2  the ALTER  TABLE cfg_fee_rate the ADD  the COLUMN transfer_area VARCHAR ( 12 is ) the DEFAULT  NULL the COMMENT ' object code code ' ;
 . 3  
. 4  - [2] to increase an after dnis_area column 
. 5  the ALTER  TABLE cfg_fee_rate the ADD  the COLUMN transfer_area VARCHAR ( 12 is ) the DEFAULT  NULL the COMMENT ' object code code ' an AFTER dnis_area;
 . 6  
. 7  -[3] an increase, as the first column 
. 8  the ALTER  TABLE cfg_fee_rate the ADD  the COLUMN transfer_area VARCHAR ( 12 is ) the DEFAULT  NULL the COMMENT ' object code code ' FIRST;
 . 9  
10  - [. 4] Delete column in a table 
. 11  the ALTER  TABLE cfg_fee_rate the DROP  the COLUMN transfer_area ;
 12 is  
13 is  - [5] to modify the table data type of a column (one way) 
14  the ALTER  tABLE cfg_fee_rate the mODIFY address VARCHAR ( 16 ); -Data type column address to modify the table VARCHAR (16) 
15  
16  - [. 5] to modify the data type of a column in the table (second approach) 
. 17  the ALTER  TABLE cfg_fee_rate the CHANGE address address VARCHAR ( 16 );
 18 is  
. 19  - [. 6] modify the name of a column in a table 
20 is  the ALTER  tABLE cfg_fee_rate the CHANGE the cOLUMN address location VARCHAR ( 30 ); - modify address listed for the location name

 

Good Good Study, Day Day Up.

Select the cycle order summary

Guess you like

Origin www.cnblogs.com/Braveliu/p/11114811.html