Get table names from a database

后端 未结 7 1546
夕颜
夕颜 2021-01-04 04:18

I\'ve searched through a bunch of websites and I have not come across any code or tutorial which has gone through the specifics of obtaining the table names from a single da

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-04 04:40

    In MySQL this will list all databases:

    show databases;
    

    For each of these you can do:

    use ;
    

    and then

    show tables;
    

提交回复
热议问题