Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.68 KB | None | 0 0
  1. mysql> LOAD DATA LOCAL INFILE 'app/database/resources/postcodes-geocodes.csv' IGNORE INTO TABLE postcodes FIELDS TERMINA
  2. TED BY ',' LINES TERMINATED BY '\r\n';
  3. Query OK, 0 rows affected, 1 warning (0.79 sec)
  4. Records: 1  Deleted: 0  Skipped: 1  Warnings: 1
  5.  
  6. mysql> show create table postcodes;
  7. +-----------+-----------------------------------------------------------------------------------------------------------
  8. ------------------------------------------------------------------------------------------------------------------------
  9. ---------------------------------------------------------------------------+
  10. | Table     | Create Table
  11.  
  12.                                                                            |
  13. +-----------+-----------------------------------------------------------------------------------------------------------
  14. ------------------------------------------------------------------------------------------------------------------------
  15. ---------------------------------------------------------------------------+
  16. | postcodes | CREATE TABLE `postcodes` (
  17.   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  18.   `postcode` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  19.   `lat` decimal(32,30) NOT NULL,
  20.   `lng` decimal(32,30) NOT NULL,
  21.   PRIMARY KEY (`id`)
  22. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
  23. +-----------+-----------------------------------------------------------------------------------------------------------
  24. ------------------------------------------------------------------------------------------------------------------------
  25. ---------------------------------------------------------------------------+
  26. 1 row in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement