【如何查看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';
相关问答:
我现在手头有这么一个问题,我想让一个操作sqlite3的程序在一个ARM板子上跑起来,板子上的os是wince5.0。
我是这么做的,我先从sqlite3主页下载源码下来,有这么3个文件:sqlite3.c、sqlite3.h、sqlite3ext.h , ......
大家好:
最近在wince下使用sqlite,但是由于表的内容量大,所以查询效率很低,不知道什么问题及怎么解决。
我的表的结构如下:
name&nbs ......
sqlite的空值查询怎么写,能者得分
select * from tt where f1 is null
select * from yourTable where col is null;
SQL code:
sqlite> create table Aoqun (id int primary key,col1 int);
sqlite> ......
string ConStr="data source=C:\ceshi.db;verson=3;password=123456";
SQLiteConnection MyConnection = new SQLiteConnection(ConStr);
try
{ ......