Difference between revisions of "Database Table: codes"

From Dreamwidth Notes
Jump to: navigation, search
Line 1: Line 1:
 
This table stores coded values for a number of lists, including countries, states/provinces, and certain sets of colors. See upgrading/base-data.sql for initial content.
 
This table stores coded values for a number of lists, including countries, states/provinces, and certain sets of colors. See upgrading/base-data.sql for initial content.
  
[[Category: Database Table|codes]]
+
= Definition =
=Definition=
+
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE codes (
 
CREATE TABLE codes (
Line 13: Line 13:
 
</source>
 
</source>
  
=Relationships=
+
= Relationships =
 +
 
 +
= Location =
  
=Location=
 
 
[[Global database]]
 
[[Global database]]
 +
 +
[[Category: Database Tables|codes]]

Revision as of 22:03, 30 March 2009

This table stores coded values for a number of lists, including countries, states/provinces, and certain sets of colors. See upgrading/base-data.sql for initial content.

Definition

CREATE TABLE codes (
  TYPE VARCHAR(10) NOT NULL DEFAULT '',
  code VARCHAR(7) NOT NULL DEFAULT '',
  item VARCHAR(80) DEFAULT NULL,
  sortorder SMALLINT(6) NOT NULL DEFAULT '0',
  PRIMARY KEY  (TYPE,code)
) PACK_KEYS=1

Relationships

Location

Global database