I'm trying to write a form update a selected row in sqlite in win forms applications C#. But there is still an error:
SQL logic error
near "ID": syntax error
My part of code:
private void button4_Click(object sender, EventArgs e)
{
string Transport = "Update TransportMed set Imię = "+textBox2.Text+", Nazwisko = " +textBox3.Text+", PESEL ="+textBox3.Text+"where ID = " + dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
ExcecuteQuery(Transport);
LoadData();
}