存储过程问题~
alter proc [dbo].[pro_distributionGarnishTime]
@b int output
as
begin
set @b =(select building_id from orders where order_id = 3)
end
这样定义存储过程能通过编译,
不过在调用的时候要报
消息 208,级别 16,状态 1,过程 pro_distributionGarnishTime,第 5 行
对象名 'orders' 无效。
(1 行受影响)
高手支招~