BIGINT UNSIGNED value is out of range

前端 未结 7 992
不知归路
不知归路 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:19

    maybe you can use cast

    SELECT *, ((1 / log(1301980250 - cast(date AS SIGNED))) * 175) as weight FROM news_articles ORDER BY weight;

提交回复
热议问题