I am trying to create a variable and set a dynamic value to it using the below syntax.
DECLARE @my_variable INT.
But it shows syntax error near "@". I tried checking the syntax in the Vertica SQL and i could not find a difference. It would be helpful if someone would help on this or can share your prior experience on the same.