Should we use prefixes in our database table naming conventions?

前端 未结 7 2188
攒了一身酷
攒了一身酷 2021-02-05 22:03

We are deciding the naming convention for tables, columns, procedures, etc. at our development team at work. The singular-plural table naming has already been decided,

7条回答
  •  逝去的感伤
    2021-02-05 22:43

    I prefer prefixing tables and other database objects with a short name of the application or solution.

    This helps in two potential situations which spring to mind:

    1. You are less likely to get naming conflicts if you opt to use any third-party framework components which require tables in your application database (e.g. asp net membership provider).

    2. If you are developing solutions for customers, they may be limited to a single database (especially if they are paying for external hosting), requiring them to store the database objects for multiple applications in a single database.

提交回复
热议问题