BIGINT UNSIGNED value is out of range

前端 未结 7 970
不知归路
不知归路 2020-12-03 09:48

I am getting the error

BIGINT UNSIGNED value is out of range in \'(1301980250 - mydb.news_articles.date)\'

相关标签:
7条回答
  • 2020-12-03 10:25

    I recently ran into this and found the most reasonable solution to simply cast any UNSIGNED ints as SIGNED.

     SELECT *, ((1 / log(1301980250 - cast(date as signed)) * 175) as weight FROM news_articles ORDER BY weight
    
    0 讨论(0)
提交回复
热议问题