修改SQL的一些无关紧要的小问题
This commit is contained in:
@@ -55,68 +55,68 @@ INSERT IGNORE INTO wait_check_album (id) SELECT album_id FROM song_album_rela
|
||||
|
||||
|
||||
-- 查看需要爬取的 song 的分布
|
||||
SELECT cast( format( id / 10000000, 0) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( id / 10000000 ) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM wait_fetch_song
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看需要爬取的 album 的分布
|
||||
SELECT cast( format( id / 1000000, 0) * 1000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( id / 1000000 ) * 1000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM wait_fetch_album
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看需要爬取的 artist 的分布
|
||||
SELECT cast( format( id / 100000, 0) * 100000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR(id / 100000 ) * 100000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM wait_fetch_artist
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看需要爬取的 comment 的分布
|
||||
SELECT cast( format( song_id / 10000000, 0) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( song_id / 10000000 ) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM comment_progress
|
||||
WHERE current_status != 2
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看需要爬取的 lyric 的分布
|
||||
SELECT cast( format( id / 10000000, 0) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( id / 10000000 ) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM wait_fetch_lyric
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
|
||||
|
||||
|
||||
-- 查看本地已有 song 的分布
|
||||
SELECT cast( format( song_id / 10000000, 0) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( song_id / 10000000 ) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM song
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看本地已有 user 的分布
|
||||
SELECT cast( format( user_id / 10000000, 0) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( user_id / 10000000 ) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM user
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看本地已有 album 的分布
|
||||
SELECT cast( format( album_id / 1000000, 0) * 1000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( album_id / 1000000 ) * 1000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM album
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看本地已有 artist 的分布
|
||||
SELECT cast( format( artist_id / 2000000, 0) * 2000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( artist_id / 2000000 ) * 2000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM artist
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看本地已有 playlist 的分布
|
||||
SELECT cast( format( playlist_id / 2000000, 0) * 2000000 as UNSIGNED ) as s, count(*) as count
|
||||
SELECT cast( FLOOR( playlist_id / 2000000 ) * 2000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM playlist
|
||||
GROUP BY s
|
||||
ORDER BY s DESC
|
||||
ORDER BY s DESC;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user