Show only VIEWS in SQLite

自闭症网瘾萝莉.ら 提交于 2019-12-04 03:37:19

问题


How can i see only VIEWS in SQLite.

.tables command list both views as well as tables. I want to see only VIEWS and not tables.

Thanks.


回答1:


You can do:

SELECT sql FROM sqlite_master WHERE type = 'view';

In order to fine-tune it:

.headers on
select * from sqlite_master;

you will know what columns are available there.



来源:https://stackoverflow.com/questions/9479540/show-only-views-in-sqlite

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!