|Subject||Re: [firebird-support] conditional selects in a SP|
> I haven' tried this, but can't you just writeMarkus, this is the "usual workaround", but has the plan problems
> where (H.Haul_Code=:supphaul or :supphaul is null)
> and A.code=H.haul_code
> and then just pass NULL to :supphaul if you want all records?
I described earlier.
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Database development questions? Check the forum!