Hello MySQL Gurus,
I have been reading articles, blogs, books about the naming conventions for designing a mysql database.
Every time I read a new article / blog, I find the authors are suggesting different types of naming conventions which is confusing me a lot.
For instance, i read an article on the Internet that says that table names should be singular, others say table name should be plural while other say every table name should have a minimum of 3 chars of acronym that represents a short name for that table.
In terms of column names, some say the primary key should be just “id”, while others say primary keys should have the table name followed by the id like “user_id”, or the table acronym followed by id like “usr_id”.
So, if there is a message table, the column names should be such as message_id, message_title, message_description
and for a comments table:
comments_id, comments_title, comments_description
I am totally confused as to what conventions should I follow and that should be industry standard.
Can you guys please suggest me the right one?
Many thanks in advance.