1
I have a query that uses several times the same parameter, in Sqldeveloper, calls Substitution Variable (VS), for example, &empresa
.
If I use this VS with the query below:
SELECT
*
FROM
pedido
WHERE empresa = &empresa;
The Sqldeveloper before executing the query, asks what the value of the VA, then inform and it performs the query.
Problem:
If I create a more complex query, using the same VA more than once, Sqldeveloper asks for the VA value every time. I wonder if there is a way to ask only once.
P.S.: I don’t want to use another variable to store the value of the VA and then use the variable in several places.
Interesting, I am migrating from PLSQL to Sqldeveloper, and tested here in PLSQL does not work the
&&
, only the&
, that has the same functionality. Thank you– David
I did the exact same test here, and I realized the same thing.
– Homer Simpson