Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个数据库,但在一列中有浮动数字。我想删除 SQLite 数据库表中小数点后的数字。应该使用什么查询来删除小数点后的数字?
对于整数值:(2.34 = 2, 2.89 = 3)
SELECT round(column) FROM sample
对于底值:(2.34 = 2, 2.89 = 2)
SELECT cast(column as int) FROM sample
这是你想要的吗 ?