时间:2021-07-01 10:21:17 帮助过:7人阅读
SELECT
price * number #列1乘以列2
AS usdt #别名
FROM
order_btccoin #表名
WHERE
buy_uid = 13307325 255.0046567135846 #条件
加就加,乘就乘,减就减
-------------
如果要统计查出的值的话可以这样
select sum(usdt)from(select price*number AS usdt from order_btccoin WHERE buy_uid=13307325)usdt
sql 查询两个列的值相加或者相乘
标签:ber sele from rom sum uid 条件 number 统计