Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Doing concatenation in SELECT

Re: Doing concatenation in SELECT

From: Frank Hubeny <fhubeny_at_ntsource.com>
Date: 1997/08/26
Message-ID: <3403A65E.379C@ntsource.com>#1/1

Add an additonal ' to get the single quote to appear. As an example,

      select 'user''s' from dual;

displays

      user's

Peggy Lok wrote:
>
> I understand that we can generate string concatenation in SELECT
> with the use of || and '
>
> (e.g. select 'user sid is ' || sid from v$session;)
>
> However, what if I want to put a single-quote (ie ' ) in the generated
> statement, how can I tell Oracle to take the quote (') as it is??
>
> Please advise, thanks.
>
> Peggy
 

-- 
Frank Hubeny            
fhubeny_at_ntsource.com            
Wheaton, IL 60187
Received on Tue Aug 26 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US