I am working in web project .I want to insert current DateTime in the db,The current_DateTime column is primarykey.If i insert more than one record its giving DuplicateKeyException: ORA-00001: violation de contrainte unique . So i want to know how to create date object with dateformat like this (yyyy-mm-dd hh:mm:s:sss).
And why did you use the time as a primary key in the first place? That implies an impossible constraint, that you cannot have two entries arriving simultaneously.
Don't get me started about those stupid light bulbs.