1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
tools/netease_music/sql/import/song_bat.txt

285 lines
9.8 KiB
Plaintext

@echo off
D:
cd D:/Program/Development/Environment/phpstudy_pro/Extensions/MySQL8.0.12/bin
mysql -hlocalhost -uroot -proot neteasemusic
use neteasemusic;
source D:/sql_export/song/song_0.sql
rename table song to song_0000;
source D:/sql_export/song/song_1.sql
rename table song to song_0001;
source D:/sql_export/song/song_2.sql
rename table song to song_0002;
source D:/sql_export/song/song_3.sql
rename table song to song_0003;
source D:/sql_export/song/song_4.sql
rename table song to song_0004;
source D:/sql_export/song/song_5.sql
rename table song to song_0005;
source D:/sql_export/song/song_6.sql
rename table song to song_0006;
source D:/sql_export/song/song_7.sql
rename table song to song_0007;
source D:/sql_export/song/song_8.sql
rename table song to song_0008;
source D:/sql_export/song/song_9.sql
rename table song to song_0009;
source D:/sql_export/song/song_10.sql
rename table song to song_0010;
source D:/sql_export/song/song_11.sql
rename table song to song_0011;
source D:/sql_export/song/song_12.sql
rename table song to song_0012;
source D:/sql_export/song/song_13.sql
rename table song to song_0013;
source D:/sql_export/song/song_14.sql
rename table song to song_0014;
source D:/sql_export/song/song_15.sql
rename table song to song_0015;
source D:/sql_export/song/song_16.sql
rename table song to song_0016;
source D:/sql_export/song/song_17.sql
rename table song to song_0017;
source D:/sql_export/song/song_18.sql
rename table song to song_0018;
source D:/sql_export/song/song_19.sql
rename table song to song_0019;
source D:/sql_export/song/song_20.sql
rename table song to song_0020;
source D:/sql_export/song/song_21.sql
rename table song to song_0021;
source D:/sql_export/song/song_22.sql
rename table song to song_0022;
source D:/sql_export/song/song_23.sql
rename table song to song_0023;
source D:/sql_export/song/song_24.sql
rename table song to song_0024;
source D:/sql_export/song/song_25.sql
rename table song to song_0025;
source D:/sql_export/song/song_26.sql
rename table song to song_0026;
source D:/sql_export/song/song_27.sql
rename table song to song_0027;
source D:/sql_export/song/song_28.sql
rename table song to song_0028;
source D:/sql_export/song/song_29.sql
rename table song to song_0029;
source D:/sql_export/song/song_30.sql
rename table song to song_0030;
source D:/sql_export/song/song_31.sql
rename table song to song_0031;
source D:/sql_export/song/song_32.sql
rename table song to song_0032;
source D:/sql_export/song/song_33.sql
rename table song to song_0033;
source D:/sql_export/song/song_34.sql
rename table song to song_0034;
source D:/sql_export/song/song_35.sql
rename table song to song_0035;
source D:/sql_export/song/song_36.sql
rename table song to song_0036;
source D:/sql_export/song/song_37.sql
rename table song to song_0037;
source D:/sql_export/song/song_38.sql
rename table song to song_0038;
source D:/sql_export/song/song_39.sql
rename table song to song_0039;
source D:/sql_export/song/song_40.sql
rename table song to song_0040;
source D:/sql_export/song/song_41.sql
rename table song to song_0041;
source D:/sql_export/song/song_42.sql
rename table song to song_0042;
source D:/sql_export/song/song_43.sql
rename table song to song_0043;
source D:/sql_export/song/song_44.sql
rename table song to song_0044;
source D:/sql_export/song/song_45.sql
rename table song to song_0045;
source D:/sql_export/song/song_46.sql
rename table song to song_0046;
source D:/sql_export/song/song_47.sql
rename table song to song_0047;
source D:/sql_export/song/song_48.sql
rename table song to song_0048;
source D:/sql_export/song/song_49.sql
rename table song to song_0049;
source D:/sql_export/song/song_50.sql
rename table song to song_0050;
source D:/sql_export/song/song_51.sql
rename table song to song_0051;
source D:/sql_export/song/song_52.sql
rename table song to song_0052;
source D:/sql_export/song/song_53.sql
rename table song to song_0053;
source D:/sql_export/song/song_54.sql
rename table song to song_0054;
source D:/sql_export/song/song_55.sql
rename table song to song_0055;
source D:/sql_export/song/song_56.sql
rename table song to song_0056;
source D:/sql_export/song/song_57.sql
rename table song to song_0057;
source D:/sql_export/song/song_58.sql
rename table song to song_0058;
source D:/sql_export/song/song_59.sql
rename table song to song_0059;
source D:/sql_export/song/song_60.sql
rename table song to song_0060;
source D:/sql_export/song/song_61.sql
rename table song to song_0061;
source D:/sql_export/song/song_62.sql
rename table song to song_0062;
source D:/sql_export/song/song_63.sql
rename table song to song_0063;
source D:/sql_export/song/song_64.sql
rename table song to song_0064;
source D:/sql_export/song/song_65.sql
rename table song to song_0065;
source D:/sql_export/song/song_66.sql
rename table song to song_0066;
source D:/sql_export/song/song_67.sql
rename table song to song_0067;
source D:/sql_export/song/song_68.sql
rename table song to song_0068;
source D:/sql_export/song/song_69.sql
rename table song to song_0069;
rename table song_0000 to song;
INSERT IGNORE INTO song SELECT * FROM song_0001;
drop table song_0001;
INSERT IGNORE INTO song SELECT * FROM song_0002;
drop table song_0002;
INSERT IGNORE INTO song SELECT * FROM song_0003;
drop table song_0003;
INSERT IGNORE INTO song SELECT * FROM song_0004;
drop table song_0004;
INSERT IGNORE INTO song SELECT * FROM song_0005;
drop table song_0005;
INSERT IGNORE INTO song SELECT * FROM song_0006;
drop table song_0006;
INSERT IGNORE INTO song SELECT * FROM song_0007;
drop table song_0007;
INSERT IGNORE INTO song SELECT * FROM song_0008;
drop table song_0008;
INSERT IGNORE INTO song SELECT * FROM song_0009;
drop table song_0009;
INSERT IGNORE INTO song SELECT * FROM song_0010;
drop table song_0010;
INSERT IGNORE INTO song SELECT * FROM song_0011;
drop table song_0011;
INSERT IGNORE INTO song SELECT * FROM song_0012;
drop table song_0012;
INSERT IGNORE INTO song SELECT * FROM song_0013;
drop table song_0013;
INSERT IGNORE INTO song SELECT * FROM song_0014;
drop table song_0014;
INSERT IGNORE INTO song SELECT * FROM song_0015;
drop table song_0015;
INSERT IGNORE INTO song SELECT * FROM song_0016;
drop table song_0016;
INSERT IGNORE INTO song SELECT * FROM song_0017;
drop table song_0017;
INSERT IGNORE INTO song SELECT * FROM song_0018;
drop table song_0018;
INSERT IGNORE INTO song SELECT * FROM song_0019;
drop table song_0019;
INSERT IGNORE INTO song SELECT * FROM song_0020;
drop table song_0020;
INSERT IGNORE INTO song SELECT * FROM song_0021;
drop table song_0021;
INSERT IGNORE INTO song SELECT * FROM song_0022;
drop table song_0022;
INSERT IGNORE INTO song SELECT * FROM song_0023;
drop table song_0023;
INSERT IGNORE INTO song SELECT * FROM song_0024;
drop table song_0024;
INSERT IGNORE INTO song SELECT * FROM song_0025;
drop table song_0025;
INSERT IGNORE INTO song SELECT * FROM song_0026;
drop table song_0026;
INSERT IGNORE INTO song SELECT * FROM song_0027;
drop table song_0027;
INSERT IGNORE INTO song SELECT * FROM song_0028;
drop table song_0028;
INSERT IGNORE INTO song SELECT * FROM song_0029;
drop table song_0029;
INSERT IGNORE INTO song SELECT * FROM song_0030;
drop table song_0030;
INSERT IGNORE INTO song SELECT * FROM song_0031;
drop table song_0031;
INSERT IGNORE INTO song SELECT * FROM song_0032;
drop table song_0032;
INSERT IGNORE INTO song SELECT * FROM song_0033;
drop table song_0033;
INSERT IGNORE INTO song SELECT * FROM song_0034;
drop table song_0034;
INSERT IGNORE INTO song SELECT * FROM song_0035;
drop table song_0035;
INSERT IGNORE INTO song SELECT * FROM song_0036;
drop table song_0036;
INSERT IGNORE INTO song SELECT * FROM song_0037;
drop table song_0037;
INSERT IGNORE INTO song SELECT * FROM song_0038;
drop table song_0038;
INSERT IGNORE INTO song SELECT * FROM song_0039;
drop table song_0039;
INSERT IGNORE INTO song SELECT * FROM song_0040;
drop table song_0040;
INSERT IGNORE INTO song SELECT * FROM song_0041;
drop table song_0041;
INSERT IGNORE INTO song SELECT * FROM song_0042;
drop table song_0042;
INSERT IGNORE INTO song SELECT * FROM song_0043;
drop table song_0043;
INSERT IGNORE INTO song SELECT * FROM song_0044;
drop table song_0044;
INSERT IGNORE INTO song SELECT * FROM song_0045;
drop table song_0045;
INSERT IGNORE INTO song SELECT * FROM song_0046;
drop table song_0046;
INSERT IGNORE INTO song SELECT * FROM song_0047;
drop table song_0047;
INSERT IGNORE INTO song SELECT * FROM song_0048;
drop table song_0048;
INSERT IGNORE INTO song SELECT * FROM song_0049;
drop table song_0049;
INSERT IGNORE INTO song SELECT * FROM song_0050;
drop table song_0050;
INSERT IGNORE INTO song SELECT * FROM song_0051;
drop table song_0051;
INSERT IGNORE INTO song SELECT * FROM song_0052;
drop table song_0052;
INSERT IGNORE INTO song SELECT * FROM song_0053;
drop table song_0053;
INSERT IGNORE INTO song SELECT * FROM song_0054;
drop table song_0054;
INSERT IGNORE INTO song SELECT * FROM song_0055;
drop table song_0055;
INSERT IGNORE INTO song SELECT * FROM song_0056;
drop table song_0056;
INSERT IGNORE INTO song SELECT * FROM song_0057;
drop table song_0057;
INSERT IGNORE INTO song SELECT * FROM song_0058;
drop table song_0058;
INSERT IGNORE INTO song SELECT * FROM song_0059;
drop table song_0059;
INSERT IGNORE INTO song SELECT * FROM song_0060;
drop table song_0060;
INSERT IGNORE INTO song SELECT * FROM song_0061;
drop table song_0061;
INSERT IGNORE INTO song SELECT * FROM song_0062;
drop table song_0062;
INSERT IGNORE INTO song SELECT * FROM song_0063;
drop table song_0063;
INSERT IGNORE INTO song SELECT * FROM song_0064;
drop table song_0064;
INSERT IGNORE INTO song SELECT * FROM song_0065;
drop table song_0065;
INSERT IGNORE INTO song SELECT * FROM song_0066;
drop table song_0066;
INSERT IGNORE INTO song SELECT * FROM song_0067;
drop table song_0067;
INSERT IGNORE INTO song SELECT * FROM song_0068;
drop table song_0068;
INSERT IGNORE INTO song SELECT * FROM song_0069;
drop table song_0069;
echo done.