mysql - Error while inserting value in datetime column -


i'm trying insert record (from java code) in table i'm getting "error 1292 (22007)". timestamp column of type "datetime" following query

insert alert(name,timestamp,location,message) values ("aaa", "2013-04-25 5:47:3pm","xyz", "bla bla bla"); 

error

error 1292 (22007): incorrect datetime value: "2013-04-25 5:47:3pm" column 'timestamp' @ row 1 

change timestamp value in query 2013-04-24 17:47:03. format datetime column must yyyy-mm-dd hh:mm:ss.


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -