关于sqlite的问题
我安装了一个sqlite developer,一个可视化的工具。
接着,我又安装了SQLite.NET,并在VS里面添加好了dll。
现在,我在sqlite developer里创建了一个数据库,库中包含我自己定义的一张表。
问题:如何使用VS查看我在sqlite developer中创建的表。
SQLiteConnection cnn = new SQLiteConnection();
cnn.ConnectionString = @"Data Source=C:\Program Files\SharpPlus\SqliteDev\myFirstDB";
cnn.Open();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = cnn;
cmd.CommandText = "select * from maintable";
SQLiteDataAdapter da = new SQLiteDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
this.dataGridView1.DataSource = ds.Tables[0];
还是得靠自己啊!!!!!
{{
相关问答:
大家好!
sqlite字段为float型的值怎样访问?
试过用sqlite3_column_double,确返回的数据不正确;
没用过,帮顶.
一样啊,返回全是 string
你的代码是什么?
double sqlite3_column_double(sqli ......
sqlite 中
CREATE TABLE table1 (
id integer primary key autoincrement,
name text default '',
[index] integer default ROWID
)
有没有类似的功能,让 index 的值默认等于id, ......
我现在有两个表
第一个表为
id title content
1 34234 234234
......
GUID:0C3EDEE8-B14F-4220-8D64-990E00D84AF7
SELECT fldGuid, fldName, fldUserGuid from table
能查询 fldUserGuid 为:0C3EDEE8-B14F-4220-8D64-990E00D84AF7 的数据一条
SELECT fldGuid, fldN ......