Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (20.3k points)
edited by

I have a SQL script that creates a package with a comment containing an ampersand (&). When I run the script from SQL Plus, I am prompted to enter a substitute value for the string starting with &. How do I disable this feature so that SQL Plus ignores the ampersand?

1 Answer

0 votes
by (40.9k points)

The below code will work:

set define off

Otherwise, you should use ampersand at the end of a string,

'StackOverflow &' || ' you'

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 29, 2019 in SQL by Tech4ever (20.3k points)
0 votes
2 answers

1.4k questions

32.9k answers

507 comments

693 users

...