我收到以下错误
#1690 - BIGINT UNSIGNED 值超出 '(
legends
.spawns
.quantity
-tmp_field
)'的范围
这是我的查询
SELECT drops.common, drops.uncommon, drops.rare, drops.legendary, spawns . *
, ( quantity - COUNT( game_moblist.spawn_id ) ) AS quantity_to_spawn
, mobs . *
FROM spawns
LEFT JOIN mobs
USING ( mob_id )
LEFT JOIN game_moblist
USING ( spawn_id )
LEFT JOIN drops ON (
SELECT MAX( level )
FROM drops
WHERE drops.type = mobs.drop_list
AND drops.level <= spawns.level )
GROUP BY spawn_id
HAVING quantity_to_spawn >=0
AND next_spawn <=0
我一直盯着它有一段时间查询很长对不起。
spawns table - countgame_moblist.spawn_id
适用0
于所有可能的行,但 1 (我删除了一行来测试查询)
否则数据很长,我认为与我的问题无关
知道如何解决这个错误吗?