Hi,
I set up a mysql on my PC, created a table and now I want to add data to it, but mysql keeps complaining that my statement is wrong, but it doesn't provice any information about what is wrong.
Here is my table's description on the command line:
Code:
mysql> describe Acessos;
+----------------+-------------+------+-----+-------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------+-------------+------+-----+-------------------+-------+
| ip | varchar(50) | YES | | NULL | |
| pais | varchar(5) | YES | | NULL | |
| horario | timestamp | YES | | CURRENT_TIMESTAMP | |
| navegador | varchar(20) | YES | | NULL | |
| plataforma | varchar(20) | YES | | NULL | |
| resolucao | varchar(10) | YES | | NULL | |
| cores | int(11) | YES | | NULL | |
| listadeplugins | varchar(20) | YES | | NULL | |
+----------------+-------------+------+-----+-------------------+-------+
8 rows in set (0,00 sec)
And now my SQL statement:
mysql> INSERT INTO Acessos ('100.100.0.0','br','','Firefox','Linux','800x500', 256 , '' );
This will give me the 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 ''100.100.0.0','br','','Firefox','Linux','800x500', 256 , '' )' at line 1
Does anyone know what I am doing wrong? I think this could be on the TIMESTAMP value, but I tryed many values and it won't work...
Better yet, does anyone know a (free) SQL statement checker that will acctually give me a hint about what I am doing wrong?
thanks,
Felipe