Subject | Re: [firebird-support] Re: UDF / SP functions |
---|---|
Author | Ann W. Harrison |
Post date | 2004-12-03T00:04:42Z |
At 01:25 PM 12/2/2004, yartax1 wrote:
use a stored procedure like a UDF either, so your only choice in
this case is to find a UDF that does what you want or write one.
Look on ibphoenix.com for lists of udf libraries. There are a
lot.
query.
won't use indexes. Generally speaking relational theory
discourages the use of things like substring in favor of
atomic values.
Regards,
Ann
>Thanks for the suggestion. Sorry, I'm afraid don't understand theYou can't pass a stored procedure into a UDF. However, you can't
>trick to pas SP into UDF!
use a stored procedure like a UDF either, so your only choice in
this case is to find a UDF that does what you want or write one.
Look on ibphoenix.com for lists of udf libraries. There are a
lot.
>You suggest me to create a UDF like othersRight. By the way, I'd worry about the performance of this
>functions, right? To do that, I must create a .dll and create an UDF
>entry point to the function created in that dll! Is that ok?
query.
> >The comparison that uses the functions sysright and sysleft
> > >Select a.* from no_nomina a
> > > inner join no_contrato b
> > > on a.empleado = b.empleado and
> > > a.orden = b.orden and
> > > a.empresa = b.empresa
> > > inner join usuario_centro c
> > > on sysleft(destcon,2) = sysright(c.centro,2)
> > > where c.idusuario = 1
won't use indexes. Generally speaking relational theory
discourages the use of things like substring in favor of
atomic values.
Regards,
Ann