1. 程式人生 > >如何查看空表列名

如何查看空表列名

img esc www 使用 cto amp bsp .com 技術

例如我的數據庫名為“example”,使用

USE example;

技術分享圖片

確定使用example數據庫。使用

show tables;

技術分享圖片

顯示數據庫中的所有表。使用

DESC persons;

技術分享圖片

顯示表persons中的列名。或者使用

DESCRIBE persons;

技術分享圖片

或者使用

SHOW columns FROM persons;

技術分享圖片

如何查看空表列名