Show only VIEWS in SQLite

前端 未结 1 967
清酒与你
清酒与你 2021-01-19 12:41

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条回答
  • 2021-01-19 13:01

    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.

    0 讨论(0)
提交回复
热议问题