Subject | Re: Optional parameter in a select statement |
---|---|
Author | m_formigoni |
Post date | 2005-08-26T13:46:36Z |
> Why can't you use it ? Is the command too long ? Or you want to useMy original select has 5 optional parameters, I'd have 25 UNIONS.
> your original command unchanged ? Or ... ?
> SELECT *This above yes, that's what I was looking for!!
> FROM LogTable
> WHERE Usr STARTING :User AND (:User IN (Usr,''))
>
> (you have to use empty string '' to indicate the need to fetch all rows)
;
> > select 'select * from TABLE' from RDB$DATABASE into :command;Yes, inside a SP.. Is there a way?
> > execute(command);
>
> Are you going to use it inside stored procedure ?