Subject RE: [IBO] SQL SELECT problem
Author Philip A. Stephens
The external single quotes are not passed in, and the first statement:

SELECT * FROM FCDX_ZONES WHERE ADDRESS CONTAINING '01-' ORDER BY ADDRESS

works fine, it is only the additional < FIRST 10 > which seems to break it,
as in:

SELECT FIRST 10 * FROM FCDX_ZONES WHERE ADDRESS CONTAINING '01-' ORDER BY
ADDRESS

The release notes show this as a valid syntax, and the rest of the query
works fine elsewhere.

TIA - Phil Stephens

-----Original Message-----
From: Alan McDonald [mailto:alan@...]
Sent: Friday, 14 March 2003 09:08
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] SQL SELECT problem


your statement is delimited by single quotes and so too is your string for
containing.. this will not work


-----Original Message-----
From: Philip A. Stephens [mailto:pstephen@...]
Sent: Friday, 14 March 2003 8:42 AM
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] SQL SELECT problem


Sorry:
I get

"Dynamic SQL Error
SQL Error code = -104
Token Unknown - line 2, char 6
'
"
(the above could be ',' but it is hard to tell, it is on a line by itself)

-----Original Message-----
From: Helen Borrie [mailto:helebor@...]
Sent: Thursday, 13 March 2003 19:58
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] SQL SELECT problem


Phil,

At 07:50 PM 13/03/2003 +1100, you wrote:
>The following statement works in IBAccess EXEC-SQL but fails in IBOConsole
>or in My Delphi 5 App using an IBOQuery against Firebird 1.0.
>
>'SELECT FIRST 10 * FROM FCDX_ZONES WHERE ADDRESS CONTAINING '01-' ORDER BY
>ADDRESS'
>
>I am new to Firebird and cannot find any indication of problems with the
>query in the docs BTW
>
>'SELECT * FROM FCDX_ZONES WHERE ADDRESS CONTAINING '01-' ORDER BY ADDRESS'
>
>Works fine in all cases.

Could you describe how the first query fails? Exception? No data? or ???

Helen

---SNIP---