MySQL修改表的语法=========================增加列[add 列名]=========================①alter table 表名 add 列名 列类型 列参数[加的列在表的最后面] 例:alter table test add username char(20) not null default ''; alter table test add birth date not null default '0000-00-00'; ②alter tabl…
1.数据表是数据库的重要内容,首先打开数据库. USE DATABASE; mysql> SHOW DATABASES;+--------------------+| Database |+--------------------+| information_schema || mysql || performance_schema || t2 || test |+--------------------+5 rows in set (0.00 sec) mysql> USE test;Dat…