select sum(money) as s1 from w_user_money where uid=10086 and money_plusminus=1; select sum(money) as s2 from w_user_money where uid=10086 and money_plusminus=2; 求 s1-s2 mysql 怎么写
将上面查询的结果当成表再写一个语句select s1-s2 from (select sum(money) as s1 from w_user_money where uid=10086 and money_plusminus=1),(select sum(money) as s2 from w_user_money where uid=10086 and money_plusminus=2);