converting int to real in sqlite

前端 未结 4 2050
天命终不由人
天命终不由人 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条回答
  •  渐次进展
    2020-12-04 15:47

    or if you want to update column based on text column:

    UPDATE table_with_fields SET real_field=cast(field_with_txt AS real)
    

提交回复
热议问题