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

How to calculate SNR of signals in MATLAB? -

Php - Delimiter must not be alphanumeric or backslash -

Delphi interface implements -