Listing all tables in a database

前端 未结 4 857
清歌不尽
清歌不尽 2021-02-09 23:48

Is there a SQL command that will list all the tables in a database and which is provider independent (works on MSSQLServer, Oracle, MySQL)?

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-10 00:30

    No, the SQL standard does not constrain where the table names are listed (if at all), so you'll have to perform different statements (typically SELECT statements on specially named tables) depending on the SQL engine you're dealing with.

提交回复
热议问题