这个小组貌似建了也没人来。太没人气了。
我就再来发一贴~:)
官方站点:http://www.sqlite.org/
.NET如何使用?
推荐使用SqLite.NET
地址:http://sqlite.phxsoftware.com
后面的就很简单啦~简单的附上一段代码:
//创建表或数据库文件
private void btn_CreateTable_Click(object sender, EventArgs e)
{
SQLiteConnection SQLiteConn = new SQLiteConnection("Data Source=" + sqliteFileName + ";Version=3;New=True;Compress=False;");
try
{
SQLiteConn.Open();
SQLiteCommand SQLiteCmd = SQLiteConn.CreateCommand();
SQLiteCmd.CommandText = "CREATE TABLE FileInfo (FileName varchar(800) primary key, CreationTime DateTime not null, ErrorInfo varchar(100))";
int re = SQLiteCmd.ExecuteNonQuery();
MessageBox.Show(re.ToString());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
SQLiteConn.Dispose();
}
}