-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpset8.sql
More file actions
27 lines (23 loc) · 688 Bytes
/
pset8.sql
File metadata and controls
27 lines (23 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--
-- Database: `pset8`
--
CREATE DATABASE IF NOT EXISTS `pset8`;
--
-- Table structure for table `places`
--
CREATE TABLE IF NOT EXISTS `pset8`.`places` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`country_code` char(2) NOT NULL,
`postal_code` varchar(20) NOT NULL,
`place_name` varchar(180) NOT NULL,
`admin_name1` varchar(100) NOT NULL,
`admin_code1` varchar(20) NOT NULL,
`admin_name2` varchar(100) NOT NULL,
`admin_code2` varchar(20) NOT NULL,
`admin_name3` varchar(100) NOT NULL,
`admin_code3` varchar(20) NOT NULL,
`latitude` decimal(7,4) NOT NULL,
`longitude` decimal(7,4) NOT NULL,
`accuracy` tinyint(4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;