I have a simple SQL Statement that works perfectly in SQL Server:
DECLARE @ID VARCHAR(10)
SET @ID = '12345'
SELECT *
FROM theTable
WHERE ID = @ID
Can someone please tell me how to do this extremely basic thing in Oracle?
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.
If your goal is to set the variables at the top of the script maybe this is your solution?