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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to pass string with a ' to PL/SQL

RE: How to pass string with a ' to PL/SQL

From: laura pena <lizzpenaorclgrp_at_yahoo.com>
Date: Wed, 11 Jun 2003 08:05:01 -0700
Message-ID: <F001.005AF12E.20030611070004@fatcity.com>


You rock !!!
 
Should have reviews my code closer!!
Thanks.Jacques Kilchoer <[EMAIL PROTECTED]> wrote: Sorry about that. Looking at your example more closely it seems like you maybe doing it right.In your package body I see this:IF ( in_whereclause IS NOT NULL ) THEN v_sqlbeg := v_sqlbeg || in_orderbyclause ||' '; END IF;shouldn't that be "in_whereclause" in the second line?> -----Original Message-----> From: Jacques Kilchoer > Sent: mardi, 10. juin 2003 14:55> To: [EMAIL PROTECTED]> Cc: [EMAIL PROTECTED]> Subject: RE: How to pass string with a ' to PL/SQL> > > I think the problem is that once you pass the string to a > PL/SQL procedure, and you want to use it in dynamic SQL, you > have to "escape" the single quote again. Perhaps the example > below will help.> > SQL> select * from emp ;> ID LAST_NAME FIRST_NAME> ---------

Received on Wed Jun 11 2003 - 10:05:01 CDT

Original text of this message

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