Subject | RE: [firebird-support] Custom search string |
---|---|
Author | Tim Gahnström |
Post date | 2005-05-02T12:13:20Z |
> -----Original Message-----Sorry for the garbage mail that just slipped my finger before this.
> From: Grant Brown [mailto:grant@...]
> I need to create a custom search string in a stored procedure subject to
> the fields that the user has selected.
Anyway, you could solve your problem with the EXECUTE STATEMENT. This allows you to execute arbitary dynamic SQL code like this
In your SP write
EXECUTE STATEMENT :my_var_containing_SQL.
It is not a very good way and I don't know if there is a better way but I would be very pleased to hear about it I it exists.
Tim