mysql 一个表导入数据到另一个表

insert into city_code(
`id`,
`three_code`,
`city_pinyin`,
`first_code`,
`city_pinyin_abridge`,
`city_name`,
`airport_name`,
`province`,
`is_international`,
`prefecture`,
`country`,
`country_code`,
`retrieval_path`,
`is_heat`,
`remark`,
`last_updated_time`,
`longitude`,
`latitude`)
SELECT 
`id`,
`szdm`,
`city_en`,
`city_first`,
`citypysx`,
`cityname`,
`jcname`,
`sssf`,
`isgj`, 
`sszj`, 
`ssgj`,
`gjdm`,
`jspath`,
`isrd`,
`bz`,
`uptime`,
`longitude`,
`latitude`
FROM data_center.data_city_code

 

你可能感兴趣的:(mysql 一个表导入数据到另一个表)