Variables in where clause in Oracle PL/SQL Developer
In ORACLE PL/SQL DEVELOPER, am I able to do the following as I could easily do in SQL Server? DECLARE @EmpIDVar INT SET @EmpIDVar = 1234 SELECT * FROM Employees WHERE EmployeeID = @EmpIDVar This seems like such a simple thing and yet it seems impossible to do in Oracle! I know about using & in front of variables that will prompt me to enter their values but why can't I just do something like the above?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.