Home » SQL & PL/SQL » SQL & PL/SQL » How to Insert ' character with concatination - oracle
How to Insert ' character with concatination - oracle [message #10058] Mon, 29 December 2003 20:14 Go to next message
Satish Bharadwaj
Messages: 8
Registered: December 2003
Junior Member
I have to select some of the column from a table, and
Columns are of datatype Varchars.

Sample Query
select 'USER NAME:' || USERNAME || ' PASSWORD "' || PASSWORD || '' from USER_SECURITY ;

Sample REQUIRED OUTPUT IS :

USER NAME:SYSTEM PASSWORD 'PASS1'

Please send me how to get the password in ' ' Quotes.

thanks
Re: How to Insert ' character with concatination - oracle [message #10059 is a reply to message #10058] Mon, 29 December 2003 22:50 Go to previous messageGo to next message
Prashanth
Messages: 41
Registered: September 1999
Member
select 'USER NAME:' || USERNAME || ' PASSWORD :'||''''||PASSWORD ||''''
from USER_SECURITY ;

try with this
Re: How to Insert ' character with concatination - oracle [message #10067 is a reply to message #10059] Tue, 30 December 2003 23:23 Go to previous message
Satish Bharadwaj
Messages: 8
Registered: December 2003
Junior Member
THANKS PRASHANTH, PLEASE SEND YOUR E MAIL ID TO
sak_india@indiatimes.com
Previous Topic: Urgent plsql
Next Topic: Writing trigger
Goto Forum:
  


Current Time: Thu Apr 25 09:29:43 CDT 2024