What is a table prefix?

后端 未结 7 1579
一整个雨季
一整个雨季 2020-12-30 23:01

What is a table prefix, and what are their advantages and disadvantages? This is in relation to MySQL.

7条回答
  •  滥情空心
    2020-12-30 23:41

    Some people advocate tbl or tbl_ (e.g. tbl_MyTable or tblMyTable) whilst others go with a suffix such as MyTable_T.

    Personally I avoid the prefixes/suffixes. I may substitute in a View in place of a Table if a schema is changing over time so I don't really distinguish between the two types of object.

    The most important thing is that you have your naming guidelines documented within your team and you all stick to the same set of guidelines for consistency.

提交回复
热议问题