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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Problem with the data type

Re: Problem with the data type

From: William Robertson <william_at_williamrobertson.net>
Date: Mon, 19 Nov 2007 07:45:55 +0000
Message-ID: <47413F33.2010406@williamrobertson.net>


Either a suitable numeric datatype (NUMBER(10) etc) accompanied by a row-level trigger, or else RAW(16) and a default value of SYS_GUID() <http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/functions168.htm>.

-----Original message-----
From: Shwe Yee Than
Date: 19/11/07 07:32
> Hi,
>
> I'm using oracle 10g in Linux OS. What data type can I use if I want
> the table to automatically increase the id (the primary key) of the
> table when I insert the values into the table?
> For example, we use "serial" data type in postgres database system.
>
> Can anyone help me? Thanks in advance.
>
> Regards,
> Shwe <http://us.rd.yahoo.com/evt=51732/*http://overview.mail.yahoo.com/>

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Nov 19 2007 - 01:45:55 CST

Original text of this message

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