在 SQLite 中仅显示视图 [英] Show only VIEWS in SQLite

查看:23
本文介绍了在 SQLite 中仅显示视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何才能在 SQLite 中只看到 VIEWS.

How can i see only VIEWS in SQLite.

.tables 命令列出视图和表.我只想查看视图而不是表格.

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

谢谢.

推荐答案

您可以:

SELECT sql FROM sqlite_master WHERE type = 'view';

为了微调:

.headers on
select * from sqlite_master;

您会知道那里有哪些列可用.

you will know what columns are available there.

这篇关于在 SQLite 中仅显示视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆