filburt1
09-14-2002, 10:24 PM
I got this:
SQL-query :
INSERT INTO news (what, when) VALUES ('test', NOW())
MySQL said:
You have an error in your SQL syntax near 'when) VALUES ('test', NOW())' at line 1
My database:
mysql> describe news;
+-------+---------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------------+------+-----+---------+----------------+
| id | int(11) | | PRI | NULL | auto_increment |
| when | timestamp(14) | YES | | NULL | |
| what | text | | | | |
+-------+---------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)
Aroo?
SQL-query :
INSERT INTO news (what, when) VALUES ('test', NOW())
MySQL said:
You have an error in your SQL syntax near 'when) VALUES ('test', NOW())' at line 1
My database:
mysql> describe news;
+-------+---------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------------+------+-----+---------+----------------+
| id | int(11) | | PRI | NULL | auto_increment |
| when | timestamp(14) | YES | | NULL | |
| what | text | | | | |
+-------+---------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)
Aroo?