Search
 
SCRIPT & CODE EXAMPLE
 

PHP

country

CREATE TABLE `ip2location_geonameid`(
	`country_code` CHAR(2),
	`region_name` VARCHAR(128),
	`city_name` VARCHAR(128),
	`geonameid` INT(10),
	INDEX `idx_country_code` (`country_code`),
	INDEX `idx_region_name` (`region_name`),
	INDEX `idx_city_name` (`city_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

LOAD DATA LOCAL
INFILE 'IP2LOCATION-GEONAMEID.CSV' INTO TABLE `ip2location_geonameid`
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '
' IGNORE 1 LINES;
Comment

PREVIOUS NEXT
Code Example
Php :: swift mailer 530 Must issue a STARTTLS command first. 
Php :: php mailer 
Php :: trim | from right in php 
Php :: read an email with php 
Php :: scheduling in laravel in custom cron 
Php :: php mysql row to json 
Php :: convert string to int php 
Php :: subquery in laravel 
Php :: must return a relationship instance laravel 
Php :: php sort 
Php :: Notice: Trying to access array offset on value of type bool in /usr/www/users/easygrb/storage/modification/catalog/controller/startup/startup.php on line 169 
Php :: how to create php message 1 
Php :: calculate 1 day interest 
Php :: php check if passwords match 
Php :: time dropdown in html 
Php :: http://www.finalclap.com/faq/81-php-afficher-date-heure-francais 
Java :: convert string to localdatetime 
Java :: how to loop javafx media player 
Java :: how to get witdth of window android 
Java :: java execution time 
Java :: default code of java 
Java :: JFrame Exit on close Java 
Java :: java cmd install raspbian 
Java :: android round double to 2 decimal 
Java :: array to map java10 
Java :: how to create progress dialog programmatically in android 
Java :: java GUI jframe text 
Java :: android glide dependencies 
Java :: java jpanel message error messages 
Java :: how to make jframe visible 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =