Subject | RE: [firebird-support] Re: Sorting and filtering by UDF result |
---|---|
Author | Helen Borrie |
Post date | 2006-03-11T13:57:22Z |
At 12:24 AM 12/03/2006, Si Carter wrote:
that it avoids the repeat call to the UDF. It repeats it. It just
saves typing.
./heLen
>While it's true that it recognises the column number, it's not true
>
> > -----Original Message-----
> > ..but of course, firebird does not recognise 'result' as an actual
> > column, so the query is illegal.
>
>It does recognise the column number so you could use
>
>SELECT F_MATCHCOUNT(concatenated_columns_string,
>keywords) AS result, table_name.* FROM table_name WHERE result>0 ORDER BY 1
>DESC;
that it avoids the repeat call to the UDF. It repeats it. It just
saves typing.
./heLen