Hallo,
bin noch recht neu mit MYsql und C# unterwegs und hab ein kleines Problem, hab mir schon die Finger wund gesucht, find aber keine Lösung.
Folgender Code:
Fehlermeldung:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index=2' at line 1
bin noch recht neu mit MYsql und C# unterwegs und hab ein kleines Problem, hab mir schon die Finger wund gesucht, find aber keine Lösung.
Folgender Code:
Code:
MySqlConnection con = new MySqlConnection(connectionin);
MySqlCommand cmd = con.CreateCommand();
con.Open();
cmd.CommandText = "DELETE FROM system where index=@row";
cmd.Parameters.AddWithValue("@row", rowcount);
cmd.ExecuteNonQuery();
con.Close();
Fehlermeldung:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index=2' at line 1