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: help with database

Re: help with database

From: <bdbafh_at_gmail.com>
Date: 18 Apr 2006 12:56:39 -0700
Message-ID: <1145390199.881531.271410@t31g2000cwb.googlegroups.com>


use an Oracle "sequence" to provide the number for the new customer_id, e.g.:

create sequence seq_cust_id start with 1 increment by 1 nocycle nomaxvalue cache 20;

select seq_cust_id.nextval into :new.customer_id from dual;

that should get you started.

-bdbafh Received on Tue Apr 18 2006 - 14:56:39 CDT

Original text of this message

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