sql query two columns multiplied values are added, or

The SELECT
. Price * Number The # 1 column 2 column multiplied

AS usdt # alias
the FROM
order_btccoin # table name
the WHERE
buy_uid = 13,307,325 255.0046567135846 # condition

Plus add, multiply to multiply, subtract decremented

-------------

If you want to find out the statistics, then you can so

select sum(usdt)from(select price*number AS usdt from order_btccoin WHERE buy_uid=13307325)usdt

Guess you like

Origin www.cnblogs.com/pengkangkang/p/10966641.html