Database Table: schools

From Dreamwidth Notes
Revision as of 13:20, 2 October 2009 by Exor674Bot (Talk | contribs)

Jump to: navigation, search

Definition

CREATE TABLE `schools` (
  `schoolid` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  `name` VARCHAR(200) BINARY NOT NULL DEFAULT '',
  `country` VARCHAR(4) NOT NULL DEFAULT '',
  `state` VARCHAR(100) BINARY DEFAULT NULL,
  `city` VARCHAR(100) BINARY NOT NULL DEFAULT '',
  `url` VARCHAR(255) DEFAULT NULL,
  PRIMARY KEY  (`schoolid`),
  UNIQUE KEY `country` (`country`,`state`,`city`,`name`)
)

Relationships