Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> How to create computed field/column in a table

How to create computed field/column in a table

From: Jesper S. Knudsen <jesper.stougaard.knudsen_at_omgroup.com>
Date: Tue, 20 Nov 2001 09:44:42 +0100
Message-ID: <WxmK7.207$w04.3163937823@news.euroconnect.net>


Hi

Does anyone know how create a computed column in a table?

In MS SQL Server you do it like this:

CREATE TABLE mytable (
  key numeric not null primary key,
  value1 numeric not null,
  value2 numeric not null,
  value3 as (value1*value2)
)

How is it done in Oracle?

Gr.

Jesper Received on Tue Nov 20 2001 - 02:44:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US