sql >> Base de Datos >  >> RDS >> Mysql

BIGINT Error fuera de rango desde MySQL 5.5

BIGINT UNSIGNED no está firmado y no puede ser negativo.

Su expresión ABS(lektoren.baum2.id - 6) utilizará un valor intermedio negativo si id es inferior a 6.

Presumiblemente, las versiones anteriores se convirtieron implícitamente a FIRMADO. Necesitas hacer un yeso.

Prueba

ORDER BY ABS(CAST(lectoren.baum2.id AS SIGNED) - 6)