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 -> Pass quotes and commas to & parms in PL/SQL?

Pass quotes and commas to & parms in PL/SQL?

From: Walter Dnes <waltdnes_at_interlog.com>
Date: Fri, 02 Jul 1999 05:53:43 GMT
Message-ID: <3780515e.14694509@news.interlog.com>


  I want to set up a generic prog PROGRAMX that includes

  SELECT BLAH, BLAH, BLAH
  WHERE SOMETHING IN (&1); I'd like to pass a quoted string like...  'foo','bar'
as one string. PL/SQL chokes on this. I've tried escaping with backslashes, etc. Nothing seems to work beyond one parm. With SET VERIFY ON, I've confirmed that...   @PROGRAMX '''string'''
resolves to...
  SELECT BLAH, BLAH, BLAH
  WHERE SOMETHING IN ('string');

No luck with additional quotes and commas in the &1 parameter.

--
Walter Dnes <waltdnes_at_interlog.com> procmail spamfilter http://www.interlog.com/~waltdnes/spamdunk/spamdunk.htm Why a fiscal conservative opposes Toronto 2008 OWE-lympics http://www.interlog.com/~waltdnes/owe-lympics/owe-lympics.htm Received on Fri Jul 02 1999 - 00:53:43 CDT

Original text of this message

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