Featured
- Get link
- X
- Other Apps
Mysql Index Naming Convention
Mysql Index Naming Convention. In this course, we expect you to use the mysql version of sql. The larger table, the slower it searches.

Database name must have the same name as project name. Numbers are not for names — while naming, it is essential that it contains only alpha english alphabets. Don't use reserved keywords, don't put spaces in the name, etc.
Indexes Should Be Explicitly Named And Include Both The Table Name And The Column Name(S) Indexed.
The create index statement is used to create indexes in tables. Each column name should be unique. Mysql uses indexes to quickly find rows with specific column values.
Indexes Are Used To Retrieve Data From The Database More Quickly Than Otherwise.
Database name must have the same name as project name. Unless you have a special reason not to, use the default database named test that is already created for you. Most of the recommendations below should be equally valid for other relational databases such as mysql, oracle, or microsoft sql server.
Having Said That, It Makes Sense To Use Some Kind Of Sane Naming Convention.
The users cannot see the indexes, they are just used to speed up searches/queries. Don't use reserved keywords, don't put spaces in the name, etc. Above we see a few good examples with varying naming conventions, but each tell me a much more than what we saw in the “donts” list.
Essentially, Follow The Mysql Documentation For Identifiers, And Add A Little Common Sense That Applies To Your Environment.
Create unique index uni_uid on t_user_basic(uid). The next word after the “tbl” prefix should be the table name. A lot of them will also apply to nosql databases, though not everything.
The Last Word Of The Table Name Should Be End With The Character S (Or Es) To Indicate Plural.
No numbers in name only alpha english characters. If the project name is my web site database should be. Sql naming conventions for tables, and all the associated objects such as indexes, constraints, keys and triggers, are important for teamwork.
Comments
Post a Comment