add mysql table fields

 

mysql> alter table table1 add price int(10) not null;
Query OK, 0 rows affected (0.05 sec)
Records: 0  Duplicates: 0  Warnings: 0
// delete a field
ALTER TABLE table1 drop id;

 

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11300500.html