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
原文地址:https://www.cnblogs.com/pengkangkang/p/10966641.html
时间: 2024-10-11 04:28:25