Release 3.2 (4/14/2005)
« Good Practice | Contents | Globalization »
This section provides guidelines on database table structure and naming.
CUSTOMER_ADDRESS, ORDER_LINE_ITEM).CUSTOMER_ADDRESS_ID,
ORDER_LINE_ITEM_ID, but in general should be avoided.CUSTOMER_FIRST_NAME,
PRODUCT_DESCRIPTION)._ID
or simply ID (or OID for "object ID") and should
be the first column of a given table (e.g., CUSTOMER_ID,
ORDER_ID). The corresponding constraint name should be the table
name followed by _PK
(e.g., CUSTOMER_PK, ORDER_PK).ADDRESS table should be called CUSTOMER_ID,
i.e., ADDRESS.CUSTOMER_ID identifies CUSTOMER.CUSTOMER_ID, CUSTOMER.ID or CUSTOMER.OID). The corresponding constraint names should be the table
name followed by _FKn
where n = 0..9 (e.g., ADDRESS_FK1,
ADDRESS_FK2)FIRST_NAME,
MIDDLE_NAME, LAST_NAME] - [PHONE_NUMBER,
FAX_NUMBER, PAGER_NUMBER]).DATE_CREATED and DATE_LAST_UPDATED
columns.« Good Practice | Contents | Globalization »
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/wtg/public/coding_standards/database.html
Comments
No screen name said on Dec 28, 2004 at 4:48 PM :