I've table named networks
:
mysql> describe networks;
+-------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| range | varchar(45) | NO | | NULL | |
+-------+-------------+------+-----+---------+----------------+
I'm trying to INSERT
value in this table with the following query:
INSERT INTO networks(range) VALUES("10.10.10.10/24");
However I get this error:
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 'range) VALUES("10.10.10.10/24")' at line 1
I tried playing with the quotes (changing them form " to ', and similar stuff), however it didn't work. Any ideas what may be wrong?