Article View: borland.public.vdbase.data.sql
Article #499Re: query using '?' in string parameter
From: Christopher F. Neumann
Date: Wed, 02 Sep 1998 00:00
Date: Wed, 02 Sep 1998 00:00
25 lines
1143 bytes
1143 bytes
If you are looking for the hello string, use %.
'hello%' - if it starts with hello
'%hello' - if it ends with hello
'%hello%' - if it has with hello
--
Christopher F. Neumann
"Failure is not an option!"
Karen Elmquist <kelmquis@wisdomwareNOSPAM.com> wrote in message
6sjidu$eq98@forums.borland.com...
>when I execute an update or insert SQL statement and there is a '?' in a
>string value, I get exceptions.
>
>for example:
>
>Query1.SQL.Add('Update table set description = :value1 where number =
>:value2');
>Query1.Params[0].AsString := 'hello?';
>Query1.Params[1].AsInteger := 1;
>Query1.ExecSql;
>
> --- boom!!
Technical Details
Message-ID:
<6sjugt$fq718@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6sjidu$eq98@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,87f82f8ff4ab83fc X-Google-Attributes: gidff5a1,public From: "Christopher F. Neumann" <CFNeumann@AOL.com> Subject: Re: query using '?' in string parameter Date: 1998/09/02 Message-ID: <6sjugt$fq718@forums.borland.com> X-Deja-AN: 387189405 References: <6sjidu$eq98@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0518.4 Organization: GoogolByte Newsgroups: borland.public.vdbase.data.sql