Difference between revisions of "Database Table: zip"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: This table needs a description.)
(Robot: Updating: Format, needs desc, definition)
Line 1: Line 1:
{{Database Table|name=zip|table type=global}}
+
{{Database Table|name=zip|table type=global|need desc=1}}
[[Category:Database Tables Needing Description]]
+
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE zip (
 
CREATE TABLE zip (
  zip varchar(5) NOT NULL default '',
+
    zip varchar(5) NOT NULL default '',
  state char(2) NOT NULL default '',
+
    state char(2) NOT NULL default '',
  city varchar(100) NOT NULL default '',
+
    city varchar(100) NOT NULL default '',
  PRIMARY KEY  (zip),
+
 
  KEY (state)
+
    PRIMARY KEY  (zip),
 +
    KEY (state)
 
) PACK_KEYS=1
 
) PACK_KEYS=1
 
</source>
 
</source>
 
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Revision as of 07:01, 28 January 2010

"{{{repo}}}" is not in the list of possible values (dw-free, dw-nonfree) for this property. This is a global table.

Definition

CREATE TABLE zip (
    zip VARCHAR(5) NOT NULL DEFAULT '',
    state CHAR(2) NOT NULL DEFAULT '',
    city VARCHAR(100) NOT NULL DEFAULT '',
 
    PRIMARY KEY  (zip),
    KEY (state)
) PACK_KEYS=1

Relationships