0

Can I put the 2 things together and execute without manually having to replace :FIRSTNAME WITH John, etc. I might have many of these parameters in other queries where it would be a pain to type out

Item 1 Given

SELECT * FROM Database1
WHERE FIRSTNAME = :FIRSTNAME
AND LASTNAME = :LASTNAME

Item 2 Given

FIRSTNAME="John", LASTNAME="SMITH"

Tried the following but didn't work.

FIRSTNAME := 'JOHN';LASTNAME := 'SMITH';
SELECT * FROM Database1
WHERE FIRSTNAME = :FIRSTNAME
AND LASTNAME = :LASTNAME
2
  • I don't have sqldeveloper at hand to test, but isn't it asking for parameters value if parameters are present in query? Or I misunderstood your question? Commented Apr 19, 2023 at 22:28
  • The question already answered link doesn't seem to help me Commented Apr 20, 2023 at 17:36

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.