日期:2014-05-18 浏览次数:21115 次
string liteConnection = @"Data Source = E:\小研究\AccessTest\SQLiteTest;";
string sql = "Select * From Student";
SQLiteConnection conn = new SQLiteConnection(liteConnection);
DataTable dt = new DataTable();
SQLiteDataAdapter da = new SQLiteDataAdapter(sql, liteConnection);
da.Fill(dt);
if (dt.Rows.Count > 0) {
MessageBox.Show("成功~");
}