どうやって?私はそれを検索するのに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);
}