Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL - ID Column if not Primary Key?

$
0
0

Quick question,

I was told the other day that no matter what I should include an auto incrementing 'ID' column.

My coworker says that in our tables it is unnecessary, and I agree. I can't see the use of such a column as we use other column(s) as primary keys.

But I have a mind to inquire, is there some unforeseeable reason to keep an ID column if we are always using other column(s) as primary keys?


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>