I have a simple query that I can run in toad.
select * from my_table
where my_id = 11111;
Why can't I run the same query from toad this time declaring a variable and using it in the where clause?
In sql server I would:
declare @testID int
set @testID = 11111
select * from my_table
where my_id = @testID;
How can I accomplish the same in Oracle 11g?