| From: | Paul Ganainm <paulsnewsgroups(at)hotmail(dot)com> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: COMPUTED BY fields or equivalent? |
| Date: | 2003-12-08 08:08:12 |
| Message-ID: | MPG.1a3e41c3bd1abf209896ab@news.gmane.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
tgl(at)sss(dot)pgh(dot)pa(dot)us says...
> > I use Interbase (starting on PostgreSQL) which has a concept of
> > Full_Name VARCHAR(30) COMPUTED BY(First_Name || ' ' || Last_Name)
> You could do that with a view (if you don't want the derived field to be
> physically stored on disk) or with a trigger (if you do).
Yes, indeed - and both of these solutions would work perfectly fine with
Interbase/Firebird.
I was just wondering if PostgreSQL implemented a COMPUTED BY feature or
equivalent (as I said, I would also be curious about other RDBMS's).
Thanks for your input so far.
Paul...
> regards, tom lane
--
plinehan x__AT__x yahoo x__DOT__x com
C++ Builder 5 SP1, Interbase 6.0.1.6 IBX 5.04 W2K Pro
Please do not top-post.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marcin Gil | 2003-12-08 12:41:31 | duplicate entries on primary key |
| Previous Message | Bruce Momjian | 2003-12-07 00:53:35 | Re: sql command to drop everything |