mysql> DESC transaction;
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| title | varchar(100) | NO | | NULL | |
| from | int(11) | NO | | NULL | |
| to | int(11) | NO | | NULL | |
| cost | int(11) | NO | | NULL | |
+-------+--------------+------+-----+---------+----------------+
5 rows in set (0.01 sec)
mysql> INSERT INTO transaction (title, from, to, cost) VALUES ('Ham', 1, 4, 9000);
ERROR 1064 (42000): 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 'from, to, cost) VA
LUES ('Ham', 1, 4, 9000)' at line 1
Ich habe versucht, Daten in 'Transaktion' Tabelle einzufügen. Ich denke, die Abfrage ist in Ordnung, aber es ist ein Fehler. Was ist mein Problem? Bitte hilf mir!Fehler 1064 (42000): Sie haben einen Fehler in Ihrer SQL-Syntax; Ich kann nicht finden, dass ich falsch gemacht habe
I figured it aus. Ich denke, es war wegen der Verwendung von 'von' in der Abfrage. Ist es richtig? –