Re: HOW? Sequencing primary key appended with a character.

From: Lun Wing San (Oracle) <"Lun>
Date: 1996/11/27
Message-ID: <329C7A3B.5A0E_at_qrcsun.qrc.org>#1/1


Hilary Juma wrote:
>
> Please how can one sequence the primary key each time to create a tuple.
>
> Examples
> supplier# value is S1001
> the next should automatically be s1002 on creation.

  Use sequence in Oracle. Whenever you insert a new record, just fetch nextval from the sequence.

-- 
Name        : Lun Wing San
Title       : Oracle developer of the Hong Kong Productivity Council
              System Administrator and Oracle DBA of the Quick Response
Center
Email Addr. : sunny_at_hkpc.org
Telephone   : 852-2788-5841
Received on Wed Nov 27 1996 - 00:00:00 CET

Original text of this message