Subject | Re: [ib-support] string concatination, triggers |
---|---|
Author | Nando Dessena |
Post date | 2001-04-09T09:08:05Z |
Helen,
I guess you meant that.
Maybe we should consider that for the wishlist...
--
____
_/\/ando
> >If I define a computed column like the one in documents:As a matter of fact, Value + NULL evaluates to NULL.
> >full_name computed by (first_name || ' ' || last_name)
> >It works only if non of the two composing columns is null. Otherwise, the
> >value is null if any of the two is null.
>
> Correct. Value + NULL evaluates to false.
I guess you meant that.
> >Is there any way to make it withoutshouldn't that be COALESCE?
> >the need to write additional code like the stuff: if (first_name is null)
> >then full_name = last_name else...
>
> No, you will need procedure logic to achieve it, until Ann H. writes our NULLIF() function into Firebird. :)
> >Can a trigger be defined to "trigger" at different events. I mean is there a...one of the (few) things I like about Oracle.
> >way to make the following work:
> >create trigger my_trigger for my_table
> >before insert or update as
> > begin
> >
> > end
>
> No. You need to define each trigger separately.
Maybe we should consider that for the wishlist...
--
____
_/\/ando