Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> MySQL

ขณะเชื่อมต่อฐานข้อมูล MySQL หนึ่ง จะดูรายการตารางของฐานข้อมูลอื่นได้อย่างไร


ใช้ SHOW TABLES FROM Database_name โดย Database_name คือชื่อฐานข้อมูลที่ไม่ได้ใช้งานอยู่ ตัวอย่างดูตารางในฐานข้อมูล tutorial:

mysql> show tables from tutorial;
+--------------------+
| Tables_in_tutorial |
+--------------------+
| employee           |
| showzerofill       |
| student            |
+--------------------+
3 rows in set (0.00 sec)