【如何查看Sqlite数据库中有多少张表[顶者有分]
SqlServer中这样统计:
select name from sysobjects where xtype='U'
要知道总数的话就简单了:
select count(*) from sysobjects where xtype='U'
Oracle中这样查询:
Select * from user_tables;
========================以上两个都无法使用。。================
select count(*) from sqlite_master where type='table'
SQL code:
select count(*) from sysobjects where xtype='U'
/*
-----------
15
(所影响的行数为 1 行)
*/
SQL code:
select name
from sqlite_master
where type='table';
相关问答:
电话本匹配查询,希望一条语句搞定
假设号码本(numtable)如下:
号码(num) 联系人 (relationname)
10086 移 ......
求delphi怎样连接Sqlite 增删改查例子
用ASqlite3Query,设置他的connection为ASqlite3DB
ASqlite3Query.Sql.text := 'insert into ....';
ASqlite3Query.Execsql;
sqlstr:='insert into stude ......
我用sqliteadmin建了一个数据库test.sdb,可是怎么也打不开提示如下错误:File opened that is not a database file
file is encrypted or is not a database。
我的连接字符串如下楼上的可不可以帮我看看
S ......
大家好:
最近在wince下使用sqlite,但是由于表的内容量大,所以查询效率很低,不知道什么问题及怎么解决。
我的表的结构如下:
name&nbs ......
SQLITE下如何删除内容中的第一个<br>
SQLITE下不好用
提示:
sqlite error
no such function: stuff
怎么解决?
SQL code:
--------------------------------------------- ......