Article View: borland.public.cppbuilder.database.multi-tier
Article #119Re: Oracle SQL params from IDE
From: pcerdaz
Date: Mon, 06 Mar 2006 13:08
Date: Mon, 06 Mar 2006 13:08
34 lines
2045 bytes
2045 bytes
Leif Suonvieri <leif.s@removethis.hem.utfors.se> wrote: >pcerdaz wrote: >> Hy all, I'm working on a SQL from C++Builder BDS2006 with next >> syntax problem: the IDE use ":" before the name of parameter >> but Oracle does not accept this character. The Oracle >> accept "&" character but IDE don't understand it. >> How can I solve this problem? >> Thanks in advance. > >I don't think I understand your problem. >The colon in Borland will only be used locally to substitute the named >parameter for its value, before it is sent to Oracle, so Oracle won't >see it at all. >/Leif Thank you and sorry if I'm wrong, but I supose that my problem is the colon v/s "&" in Oracle. When I try to activate the following query an exception error is shown: "Operation not applicable", but if I change the ":Nombre" parameter by a value the query works well. SELECT ID, PREFIX, STREET_NAME, SUFIX, CITY, INIIZQ FROM VIAL_STGO Vial_stgo WHERE (STREET_NAME LIKE :Nombre) AND (SUFIX = 'LAS CONDES') AND (PREFIX = 'CALLE') ORDER BY INIIZQ Moreover, when I test this query over Oracle it works well (but using "&" to declare the parameter). Regards, PCSdeZ
Technical Details
Message-ID:
<440c425e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4405c64b$1@newsgroups.borland.com> <440b0098$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,2207e430eb60e979 X-Google-Attributes: gidfcd2b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "pcerdaz" <pcerdaz@mi.cl> Sender: "pcerdaz" <pcerdaz@mi.cl> Reply-To: "pcerdaz" <pcerdaz@mi.cl> Subject: Re: Oracle SQL params from IDE Newsgroups: borland.public.cppbuilder.database.multi-tier X-User-Info: 200.9.151.135 X-Forwarded-For: 91.0.10.27 References: <4405c64b$1@newsgroups.borland.com> <440b0098$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <440c425e$1@newsgroups.borland.com> Date: 6 Mar 2006 06:08:30 -0700 X-Trace: newsgroups.borland.com 1141654110 207.105.83.66 (6 Mar 2006 06:08:30 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail