How to get a list of MySQL views?

后端 未结 9 1532
清歌不尽
清歌不尽 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 21:05

    If you created any view in Mysql databases then you can simply see it as you see your all tables in your particular database.

    write:

    --mysql> SHOW TABLES;
    

    you will see list of tables and views of your database.

提交回复
热议问题