I want to do this:
DECLARE @today as smalldatetime SELECT @today = GetDate()
But i need an oracle translation
While not a strict translation, I prefer the following construction in Oracle:
v_today date; -- needs to go where variables are declared v_today := sysdate; -- used where code is run.
Or even:
v_today date := sysdate;