溫馨提示×

mysql怎么查數(shù)據(jù)庫所有表

小億
81
2024-09-29 03:28:44
欄目: 云計(jì)算

在MySQL中,要查看數(shù)據(jù)庫的所有表,可以使用以下命令:

SELECT table_name FROM information_schema.tables WHERE table_schema = 'your_database_name';

your_database_name替換為您要查詢的實(shí)際數(shù)據(jù)庫名稱。這條命令將從information_schema.tables表中檢索所有屬于指定數(shù)據(jù)庫的表名。

0