我收到以下錯誤BIGINT無符號值超出範圍,我的SQL
#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
我一直盯着它,而查詢是多久,我很抱歉。
派生表 - 數game_moblist.spawn_id
是0
所有可能行,但1(我刪除的行測試查詢)
的數據,否則是很長,無關我的問題,我認爲
任何想法如何解決這個錯誤?
非常類似於https://stackoverflow.com/questions/5605085/bigint-unsigned-value-is-out-of-range – qdinar 2017-07-13 09:35:10