Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Cannot get parameterized queries to work for ORACLE
kroma wrote:
>
> > Query.ParamByName('ID').AsString := 'Duh';
>
> Because your doing it wrong. The string must be in quotes. Try
> Query.ParamByName('ID').AsString := '''Duh''';
>
> Thats three single quotes on each side.
I don't think that I'm doing it wrong. It should be
Query.ParamByName('ID').AsString := 'Duh';
'''Duh''' doesn't make sense. Besides, I've tested the app with Interbase and it works fine. Only ORACLE gives me headaches. Received on Mon Jan 05 1998 - 00:00:00 CST