Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
There are no naming rules. There are agreements within the team and the project. The simplest principle is the identifier inside the table - id, foreign keys - tableNameId or id_tableName.
off the bat. Google found out that id is an antipattern
stackoverflow.com/questions/208580/naming-of-id-co...
www.amazon.com/s/ref=nb_sb_ss_i_1_5?url=search-ali...
In fact, nowhere. Use names that are easy to understand.
For example, when working with many tables: category, user, product, the names will be more convenient for understanding: cid, uid, pid, respectively.
In short, the master-master.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question