I want to do this:
DECLARE @today as smalldatetime
SELECT @today = GetDate()
But i need an oracle translation
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.
Oracle uses
SYSDATE, and there’s the ANSI standardCURRENT_TIMESTAMP(supported by both SQL Server and Oracle, besides others) to get the current date & time.…would be the equivalent to the TSQL you posted. Oracle uses the
INTOclause for populating variables, where the variable data type must match the column position in the SELECT clause.