I’m trying to add insert information into a table I made but I’m getting an error. I don’t see what I’m doing wrong here though, but I’m also not sure how to read the error message.
mysql> describe message;
+-----------+------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| whenAdded | datetime | YES | | NULL | |
| comment | text | YES | | NULL | |
| deleted | tinyint(1) | YES | | 0 | |
+-----------+------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)
mysql> INSERT INTO 'message' ('id','whenAdded','comment','deleted') VALUES (NULL,'2018-07-26 07:01:30', 'hello test hello lorem ipsem amut livi', FALSE);
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 ''message' ('id','whenAdded','comment','deleted') VALUES (NULL,'2018-07-26 07:01:' at line 1
The problem is at line 1. Is this the id row or the whenAdded row? I’m not sure what I should change about them to make the error go away and would appreciate help with this.