sqlite> select totalUsers/totalBids from (select (select count(*) from Bids) as totalBids,(select count(*) from Users) as totalUsers) A; 1
我们可以对结果进行类型转换,得到除法结果的真实价值吗?
SELECT something*1.0/total FROM somewhere
这将给你浮点除法而不是整数除法。