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.
データベースがありますが、1 つの列に浮動小数点数があります。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
これは、あなたの望むことですか ?