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

Home -> Community -> Usenet -> c.d.o.server -> Re: Hello, a question comparing sql server to Oracle

Re: Hello, a question comparing sql server to Oracle

From: Brian Peasland <oracle_dba_at_nospam.peasland.net>
Date: Mon, 1 May 2006 17:19:03 GMT
Message-ID: <IyLK3z.7qK@igsrsparc2.er.usgs.gov>


In Oracle, you'll want to create a sequence and then create a trigger on your table to generate the next value from a sequence and insert that value in the table's column.

In SQL Server, the autoincrementing column value is tied directly to the table. In Oracle, the sequence is not directly tied to anything...

HTH,
Brian

-- 
===================================================================

Brian Peasland
oracle_dba_at_nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Received on Mon May 01 2006 - 12:19:03 CDT

Original text of this message

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