Re: VARCHAR vs NUMBER

From: Mark Bluemel <markb_at_pyramid.com>
Date: 1995/11/01
Message-ID: <1995Nov1.040802.10404_at_pyra.co.uk>#1/1


Richard Frazier (rfrazier_at_mailstorm.dot.gov) wrote: [Snip!]
: We have applications that generate case id codes by simply
: selecting max(id) +1.

Are you serious ? You might get away with it, providing :-

  1. the table is small, or there is an index available AND
  2. the concurrency doesn't get you - I can see the potential for duplicates here ...

What is the aversion to using sequence generators, which are fast, efficient and don't have concurrency problems ?

--
Mark Bluemel	Unix/Oracle Trainer and Consultant
		My opinions are my own, but I'll share them
		All solutions to problems are offered "as is"
		and without warranty - you have been warned :-)
Received on Wed Nov 01 1995 - 00:00:00 CET

Original text of this message