having trouble inserting timestamp value
I am having problems inserting into a timestamp field.
Here is my schema:
CREATE TABLE `sponsorlog` (
`updated` timestamp,
`user` varchar(200) NOT NULL,
`company` varchar(200) NOT NULL,
`change` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Here is the inser command:
insert into sponsorlog (user, company, change, updated) values ('attaskad
min@llts.com', '3M', 'Sponsor Jon Bove added', '2015-08-10 17:43:32');
And the error is the typical useless MySQL error. It seems to be pointing at the date/time value but I can't see anything wrong with it. Any ideas?
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 'chang
e, updated) values ('attaskadmin@llts.com', '3M', 'Sponsor Jon Bove added',' at
line 1
Subject
Written By
Posted
having trouble inserting timestamp value
August 10, 2015 08:07PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.