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

Home -> Community -> Usenet -> c.d.o.server -> Re: string quote problem

Re: string quote problem

From: Frost National Bank <xyzgeorge.simmons_at_frostbank.com>
Date: Wed, 27 Sep 2000 11:38:26 -0500
Message-ID: <39D22282.A5CF1EC4@frostbank.com>

You could try using the escape character. For instance:

vitem := '\'1000010\''

(two single quotes at the end)

HTH,
George

terry_stjean_at_my-deja.com wrote:

> I am building a string in PL/SQL.
> I want it to look as follows:
>
> select * from sales where item = '1000010';
>
> I have the following:
> strsel := 'select * from sales where item = ' || v_item || ';';
>
> v_item is a character variable used in the string.
> How do I get the single quotes around the value of v_item?
>
> Terry
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Sep 27 2000 - 11:38:26 CDT

Original text of this message

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