如何獲取預設 MySQL 資料庫中的表列表?
眾所周知,預設的 MySQL 資料庫是後續查詢時當前使用的資料庫。我們可以使用 SHOW TABLES 語句獲取該資料庫中的表格列表。
mysql> SHOW TABLES; +------------------+ | Tables_in_sample | +------------------+ | employee | | new_student | | student | +------------------+ 3 rows in set (0.00 sec)
上述語句顯示了 Sample 資料庫中的表格列表。
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP