How to get SUM from results from SP?# Database - 数据库
a*t
1 楼
If a stored procedure takes ID as parameter and does a
select *
from xxxTable
where ID = @ID
Is it possible for me to get a SUM(cost) from the results without putting
the result into a table first?
select *
from xxxTable
where ID = @ID
Is it possible for me to get a SUM(cost) from the results without putting
the result into a table first?