创建mssql 存储过程

来源:互联网 发布:剑网三正太脸型数据 编辑:程序博客网 时间:2024/06/05 18:31
create procedure dbo.order_account @@merchantId varchar(30), @@totalAmount numeric(15,3)=0 output AS DECLARE @tempAmount numeric(15,3) select @tempAmount = sum(fd_tx_money) from tb_order where fd_merchant_id=@@merchantId set @@totalAmount = @tempAmount  删除存储过程: drop proc order_account

新建查询,贴代码,F5执行
0 0
原创粉丝点击