top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

how to escape the ampersand character in Oracle PLSQL

+1 vote

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