怎么做?我花了 20 分钟搜索它,但找到了如何查询命令,但是有问题。我使用System.Data.SQLite
try
{
SQLiteConnection cnn = new SQLiteConnection(label2.Text);
cnn.Open();//Error is here!
SQLiteCommand cmd = cnn.CreateCommand();
cmd.CommandText = textBox1.Text;
cmd.ExecuteNonQuery(); MessageBox.Show("Query is good!");
cnn.Close();
}
catch (SQLiteException ee)
{
MessageBox.Show(ee.Message);
}