易截截图软件、单文件、免安装、纯绿色、仅160KB

【如何查看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';



相关问答:

如何枚举sqlite中的所有表及其字段??

我有一份sqlite数据库文件,但不知道里面的表名,如何枚举出所有的表名以及其字段名??

关键是sqlite的sql语句如何写?我试了一些sql语句不行,特来求助。

字段名 则无法象表名一样从数据库系统表中直接 ......

有关SQlite的一个问题

程序代码如下:
sqlTime = "select SUM(onlineTimeSpan) from T_OnlineTimeSum where ipAddress = :a AND onlineDate BETWEEN :b AND :c";
                ......

sqlite的空值查询怎么写,能者得分

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> ......

用过sqlite的朋友看下

最简单的问题。也有点郁闷。
我想创建一个数据库
我现在只有一个sqlite3.exe文件。
我使用的方法是双击这个文件
使用的命令为:
sqlite3 f:\a.db 回车
可是结果却显示为
  ...>
sqli ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号