Naming of ID columns in database tables

后端 未结 23 765

I was wondering peoples opinions on the naming of ID columns in database tables.

If I have a table called Invoices with a primary key of an identity column I would c

23条回答
  •  臣服心动
    2020-11-29 18:08

    We use InvoiceID, not ID. It makes queries more readable -- when you see ID alone it could mean anything, especially when you alias the table to i.

提交回复
热议问题