获取值后如何进行净总计 [英] How to do net total after fetching the value

查看:49
本文介绍了获取值后如何进行净总计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道在哪里创建一个函数,以便它可以使用从数据库中获取的价格和数量来计算净总数。所以请帮帮我。

I dont know where to make a function so that it can do net total with price and quanity which is fetched from database . So please help me.

推荐答案

尝试以下查询乘以价格 Quanity 列。

Try the following query to multiply the Price and Quanity column.
SELECT Price * Quanity FROM yourTableName


这篇关于获取值后如何进行净总计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆