Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 9i features?
Sybrand Bakker wrote:
> On 7 Feb 2004 00:39:22 -0800, pascaldamian_at_icqmail.com (Pascal Damian)
> wrote:
>
>>* computed field/column is not supported, use VIEW for that purpose;
What Pascal seems to be refering to is:
SQL Server 2000: CREATE TABLE ... (c1 INT, c2 AS c1 + 5); (a virutal column)
DB2 V7: ...c1 INT, c2 GENERATED ALWAYS AS (c1 + 5)..) (a materialized,
functionally dependend, column)
AFAIK you would either use index on expression or a combination of before trigger and check constraint in Oracle, depending on the intended use.
Cheers
Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto LabReceived on Sat Feb 07 2004 - 10:36:32 CST