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

Home -> Community -> Mailing Lists -> Oracle-L -> AW: How do you generate primary keys?

AW: How do you generate primary keys?

From: Stefan Jahnke <Stefan.Jahnke_at_bov.de>
Date: Thu, 13 Nov 2003 00:59:24 -0800
Message-ID: <F001.005D6760.20031113005924@fatcity.com>


Hi

Looks like it's time to read some fine manuals again ;). So in a scenario like this:

  1. INSERT ... RETURN without the PK is done from Java
  2. BEFORE INSERT TRIGGER adds the PK, then does the actual insert.
  3. PK is returned to Java context ?

.. c) works ? I'm not sure about that. Figured I just ask, before I actually go ahead and try it out.

Stefan

-----Ursprüngliche Nachricht-----
Von: Igor Neyman [mailto:ineyman_at_perceptron.com] Gesendet: Montag, 10. November 2003 18:54 An: Multiple recipients of list ORACLE-L Betreff: RE: How do you generate primary keys?

True,
Just in this case "insert" was a point of discussion.

Igor Neyman, OCP DBA
ineyman_at_perceptron.com

-----Original Message-----
Jamadagni, Rajendra
Sent: Monday, November 10, 2003 11:34 AM To: Multiple recipients of list ORACLE-L

.. and for updates,delets as well ...




Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
Sent: Monday, November 10, 2003 11:24 AM To: Multiple recipients of list ORACLE-L

Oracle has "RETURNING" clause for insert.

Igor Neyman, OCP DBA
ineyman_at_perceptron.com




This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.

**************5
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Igor Neyman
  INET: ineyman_at_perceptron.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).  

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Stefan Jahnke
  INET: Stefan.Jahnke_at_bov.de

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Nov 13 2003 - 02:59:24 CST

Original text of this message

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