去掉 NOT IN 之后子查询的 DISTINCT
This commit is contained in:
@@ -10,7 +10,7 @@ const dbUtils = global.dbUtils;
|
||||
async function fetchAll() {
|
||||
console.log("start fetching lyrics ...");
|
||||
var songIds = await dbUtils.query(`
|
||||
SELECT DISTINCT song_id FROM song WHERE song_id NOT IN ( SELECT DISTINCT song_id FROM lyric )
|
||||
SELECT DISTINCT song_id FROM song WHERE song_id NOT IN ( SELECT song_id FROM lyric )
|
||||
`, []);
|
||||
songIds = songIds.map(song => song.song_id);
|
||||
for (let i = 0; i < songIds.length; i++) {
|
||||
|
Reference in New Issue
Block a user