mysql> show columns from employee\g*************************** 1. row *************************** field: id type: int(11) null: yes key:default: null extra:*************************** 2. row *************************** field: name type: varchar(20) null: yes key:default: null extra:2 rows in set (0.07 sec)
在上面的示例中,我们借助 show columns 语句获取了“employee”表的列列表。
以上就是我们如何获取现有 mysql 表中的列列表?的详细内容。