[摘要]+----------+-------------+------+-----+---------+----------------+
4 rows in set (0.01 sec)2.4 alte...
+----------+-------------+------+-----+---------+----------------+
4 rows in set (0.01 sec)2.4 alter 修改表结构(增、删、改) 默认创建的表不支持中文字符,所以需将表编码设置为utf8: 2.4.1 insert 在表中添加列(字段) mysql> alter table PEOPLE add star BOOL;Query OK, 0 rows affected (0.02 sec)Records: 0 Duplicates: 0 Warnings: 0 提示:在MySQL里,布尔类型会自动转换为tinyint(1)类型。 我们不妨使用desc去查看一下PEOPLE表结构: mysql> desc PEOPLE;
+----------+-------------+------+-----+---------+----------------+ |