Getting the floor value of a number in SQLite?

前端 未结 2 1069
无人共我
无人共我 2020-12-11 14:22

I have a SQLite database with a table containing the scores of some league players in a bowling center. I\'m trying to get the average of the Score column for each player ID

相关标签:
2条回答
  • 2020-12-11 15:17

    You can use round(value - 0.5) (seen here)

    0 讨论(0)
  • 2020-12-11 15:24

    You can just use cast it to an integer. It will truncate it, which is equivalent to floor.

    0 讨论(0)
提交回复
热议问题