in reply to Re: Re: Flexible Database Updates
in thread Flexible Database Updates
I do believe that fixed size arrays can be and often are
best put in a single record. Some examples are so often
done that they are invisible.
First, middle, and last- names are an example that could be
create table name ( id keytype, -- constrained to parent seq integer, -- place in name set name text );
The usage of address_line_1 and address_line_2 can be
viewed as an array embedded in a record.
Financial applications show arrays for the 12 or 13 months
of the year.
I used a pair of arrays to describe a set of items. There
could be upto 5 dimensions & 5 dimension_names.
All of these belonged in one record.
That the fullname or address should be one field is a
excellent alternative, but not always do-able.
Printing envelopes with a single address string may
be problematic.
Using a single fullname may induce the use of a nickname,
possibly recreating the initial issue.
The solution that I am currently implementing/trying is
to use arrays on the Perl side and separate fields on the
SQL side. A naming convention maps $o->{elem}[0] to elem_0,
and $o->{address1} to address1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Flexible Database Updates
by grep (Monsignor) on Sep 19, 2002 at 04:32 UTC | |
by rir (Vicar) on Sep 19, 2002 at 21:51 UTC |