Einzelnen Beitrag anzeigen

Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.542 Beiträge
 
Delphi 11 Alexandria
 
#7

Re: Automatische ID-Generierung... wie macht ihr das?

  Alt 17. Aug 2009, 18:48
Zitat:
What is the maximum value of a generator?
Generators store and return 64-bit values in all versions of Firebird. This gives us a value range of:
-263 .. 263-1 or -9,223,372,036,854,775,808 .. 9,223,372,036,854,775,807
So if you use a generator with starting value 0 to feed a NUMERIC(18) or BIGINT column (both
types represent 64-bit integers), and you would insert 1000 rows per second, it would take around 300
million years (!) before it rolls over. As it is pretty unlikely mankind will still walk on this planet by
then (and still use Firebird databases), that's nothing to be really worried about.
Quelle: http://www.firebirdsql.org/pdfmanual...ator-Guide.pdf
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat