Disclosure: I build Schemity, a desktop ERD tool - this post is from our blog and uses it for the examples. TL;DR: Give a table's own key IDENTITY unless you need what only a sequence does: one number space across several tables, a number before the row exists, or a column you can renumber later without rebuilding the table. A sequence default... Weiterlesen: SQL Server IDENTITY vs SEQUENCE: Which Should a Primary Key Use?
Intelligence View
⚡ tsecurity.de Intelligence
SQL Server IDENTITY vs SEQUENCE: Which Should a Primary Key Use?
Disclosure: I build Schemity, a desktop ERD tool - this post is from our blog and uses it for the examples. TL;DR: Give a table's own key IDENTITY unless you…
Quelle & Fakten · 1 Min. Lesezeit
Quelle: DEV Community (dev.to)
Rubrik: Sichere Programmierung
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
Security Briefing Kostenlos · 1-Klick-Abmeldung
Intelligence Digest — kostenlos
Täglich die wichtigsten Security-News · jederzeit abbestellbar
💬 Community-Diskussion & Kommentare
Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.