【如何查看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';
相关问答:
C# code:
System.Data.SQLite.SQLiteConnection conn = new SQLiteConnection(@"acs.db");
try
{
conn.Open();
}
......
我用evc编写的程序,将对话框中的数据存入数据库,第一次可以存入,不过第二次输入的数据不能存入到数据库中。
下面是我的程序
UpdateData(TRUE); // TODO: Add your control notification handler code here ......
之前 公司做网站使用的是asp+access,现在也在使用sql server 2005 + asp.net ,前者肯定要换代,后者sql server太庞大了,所以想换做其他的数据库,选免费开源的类型,只要满足普通企业宣传型网站,现在 看到了SQLi ......
SQLITE下如何删除内容中的第一个<br>
SQLITE下不好用
提示:
sqlite error
no such function: stuff
怎么解决?
SQL code:
--------------------------------------------- ......
大家好!
sqlite字段为float型的值怎样访问?
试过用sqlite3_column_double,确返回的数据不正确;
没用过,帮顶.
一样啊,返回全是 string
你的代码是什么?
double sqlite3_column_double(sqli ......