Should we use prefixes in our database table naming conventions?

前端 未结 7 2207
攒了一身酷
攒了一身酷 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 23:03

    I find hungarian DB object prefixes to indicate their types rather annoying.

    I've worked in places where every table name had to start with "tbl". In every case, the naming convention ended up eventually causing much pain when someone needed to make an otherwise minor change.

    For example, if your convention is that tables start with "tbl" and views start with "v", thn what's the right thing to do when you decide to replace a table with some other things on the backend and provide a view for compatibility or even as the preferred interface? We ended up having views that started with "tbl".

提交回复
热议问题