top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

how to escape the ampersand character in Oracle PLSQL

+1 vote
151 views

when ever i run the anonymous plsql block, sql*plus request me enter the parameter input value

I have a variable value like customer_name='xxxcust & lt pvt'

please help me

posted Sep 12, 2014 by Vidhya Sagar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

use CHR(39) and it looks like :
customer_name='xxxcust '||CHR(39)||' lt pvt'

answer Sep 15, 2014 by Arun Gowda
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...