I want to insert a default Unix date time in database table. But i can’t able to insert this. Please help me to set the default Unix date time.Am new for Oracle.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SYSDATEreturns the current day and time as an OracleDATE(an OracleDATEalways contains both a day and a time component to the second).SYSTIMESTAMPreturns the current day and time as an OracleTIMESTAMP WITH TIME ZONEwhich includes both fractional seconds and a time zone.If you want to insert a
NUMBERthat represents the number of seconds since January 1, 1970 (which I’m assuming is what you mean by “Unix date time format”, that would be(SYSDATE - date '1970-01-01') * 60 * 60 * 24.