Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have this query where I need to give input for the name variable similar to the second condition. How can I do this when I have a LIKE condition?
upper(name) LIKE upper('%name%') AND trunc(sysdate) - INTERVAL '&NumberDays' DAY ( 3 ) <= create_dt
upper(name) LIKE upper('%&name%')
Oracle (actually, sqlplus) does litteral replacement when it encounters a variable prefixed with an amperstead, so you could simply do:
sqlplus
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
upper(name) LIKE upper('%&name%')?