select concat(‘insert into `tablename`(user,provinceid,cityid,dialcode,cityname,addtime,proflag)
values(\‘‘,user,‘\‘,\‘‘,provinceid,‘\‘,\‘‘,cityid,‘\‘,\‘‘,dialcode,‘\‘,\‘‘,cityname,‘\‘,\‘‘,addtime,‘\‘,\‘‘,proflag,‘\‘);‘)
FROM `tablename` where provinceid in(1,2,3) INTO OUTFILE ‘D:/data.sql‘
时间: 2024-11-07 07:06:14