表的Andr​​oid获取列表 [英] Android get list of tables

查看:113
本文介绍了表的Andr​​oid获取列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道SQL获取表名的列表,通过code在Android的?我知道 .tables 做它通过命令行shell,但这不会通过code工作。它是什么做的元数据等。?

Does anyone know the SQL to get a list of table names via code in Android? I know .tables does it through command shell but this doesn't work through code. Is it anything to do with the meta-data, etc.?

推荐答案

明白了:

SELECT * FROM sqlite_master WHERE type='table'

这篇关于表的Andr​​oid获取列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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