安装包 使用 const string strconn = "Data Source=data.db"; using (SQLiteConnection conn = new SQLiteConnection(strconn)) { conn.Open(); var cmd = conn.CreateCommand(); cmd.CommandText = "select 1"; var obj = cmd.ExecuteScalar(); MessageBox.Show(obj.ToString()); }