易截截图软件、单文件、免安装、纯绿色、仅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';



相关问答:

delphi怎样连接Sqlite 增删改查

delphi连接Sqlite 增删改查例子
数据库已经连通了, 插入会报错,no query specified
with dm.ASQLite3Query1 do
  begin
    dm.ASQLite3Query1.Close;
    dm.ASQLite3 ......

SQLITE下如何删除内容中的第一个<br>

SQLITE下如何删除内容中的第一个<br>
SQLITE下不好用 
提示: 
sqlite error 
no such function: stuff 
怎么解决?
SQL code:
--------------------------------------------- ......

sqlite在vs2005中的使用报错

在vs2005中引用了using System.Data.SQLite;
定义了一个连数据库连接变量public SQLiteConnection dBConn;
就报下面这个错误了.
The type 'System.Data.Common.DbConnection' is defined in an ass ......

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号