我遇到了错误
'(1301980250 -
mydb
.news_articles
.date
)'中BIGINT UNSIGNED值超出范围。
当我运行这个查询时
SELECT *, ((1 / log(1301980250 - date)) * 175) as weight FROM news_articles ORDER BY weight;
如果移除ORDER BY条件,错误也会消失。该如何修复它?
更新: 日期字段包含Unix时间戳(例如:1298944082)。在将MySQL从5.0.x升级到5.5.x之后,出现了这个错误。
请问有什么帮助吗?