Subject | Re: [ib-support] string concatination, triggers |
---|---|
Author | Helen Borrie |
Post date | 2001-04-07T05:37:18Z |
At 05:09 AM 07-04-01 +0200, you wrote:
Cheers,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>If I define a computed column like the one in documents:Correct. Value + NULL evaluates to false.
>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.
>Is there any way to make it withoutNo, you will need procedure logic to achieve it, until Ann H. writes our NULLIF() function into Firebird. :)
>the need to write additional code like the stuff: if (first_name is null)
>then full_name = last_name else...
>Can a trigger be defined to "trigger" at different events. I mean is there aNo. You need to define each trigger separately.
>way to make the following work:
>create trigger my_trigger for my_table
>before insert or update as
> begin
>
> end
Cheers,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________