converting int to real in sqlite

前端 未结 4 2062
天命终不由人
天命终不由人 2020-12-04 15:03

Division in sqlite return integer value

sqlite> select totalUsers/totalBids from 
(select (select count(*) from Bids) as totalBids , 
(select count(*) fro         


        
4条回答
  •  猫巷女王i
    2020-12-04 15:45

    select cast ( ( select 1 ) as real );
    

    https://www.sqlite.org/lang_expr.html#castexpr

提交回复
热议问题