How to get only tables, not views using SHOW TABLES?

前端 未结 2 1949
别跟我提以往
别跟我提以往 2021-01-31 02:25

SHOW TABLES gives you tables+views.

How do I retrieve only tables?

2条回答
  •  面向向阳花
    2021-01-31 03:10

    show full tables where Table_Type = 'BASE TABLE'
    

    verbatim.

    Or put another way;

    show full tables where Table_Type != 'VIEW'
    

    http://dev.mysql.com/doc/refman/5.0/en/show-tables.html

提交回复
热议问题