[摘要]+--------+-------------+------+-----+---------+-------+4 rows in set (0.00 sec)在表的第一个位置增加一个字段ALTER ...
+--------+-------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
在表的第一个位置增加一个字段
ALTER TABLE table_name ADD 属性名 属性类型 first
mysql> alter table tab_dept add id int first;
Query OK, 0 rows affected (0.38 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> desc tab_dept;
+--------+-------------+------+-----+---------+-------+
关键词:mysql学习之表的基本设置的代码分享