Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE IF NOT EXISTS `Hotels` (
- `id` int unsigned NOT NULL AUTO_INCREMENT,
- `name` text,
- `coordinate` point NOT NULL,
- PRIMARY KEY (`id`),
- SPATIAL KEY `coordinate` (`coordinate`),
- )
- CREATE TABLE IF NOT EXISTS `Roads` (
- `id` int unsigned NOT NULL AUTO_INCREMENT,
- `name` text,
- `route` linestring NOT NULL,
- PRIMARY KEY (`id`),
- SPATIAL KEY `coordinate` (`route`),
- )
Add Comment
Please, Sign In to add comment