Ask the Expert

Table naming guidelines

What are the standerd naming conventions for tables, and which types of table names are being used nowadays?

    Requires Free Membership to View

There really aren't industry standards for naming tables and other database objects. It is more company policy or standards that take effect. I'd offer the following suggestions as guidelines:

1. Keep the name short, but not too short as to make it cryptic. For instance, ACCOUNTS_PAYABLE is fine, A_P is not.
2. Some abbreviations are ok, but standards your abbreviations. For instance, ACCTS_PAYABLE and ACNTS_DUE use two different abbreviations for the same word.
3. For non-table objects, it is often desirable to use a short description of that object type in the object name, i.e. PKG, FN, IDX, etc.
4. For indexes, the table name should be part of the index name so that you can quickly identify which table the index belongs to. Similarly for constraints.

This was first published in February 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: