How to get a list of MySQL views?

后端 未结 9 1530
清歌不尽
清歌不尽 2020-11-28 20:12

I\'m looking for a way to list all views in a database.

Initially I found and tried an answer on the MySQL forums:

SELECT table_name
FROM information         


        
9条回答
  •  醉梦人生
    2020-11-28 20:50

    Another way to find all View:

    SELECT DISTINCT table_name FROM information_schema.TABLES WHERE table_type = 'VIEW'

提交回复
热议问题