-1
我已存儲的過程是這樣的:將兩個列結果的一列結果SQL
ALTER procedure [dbo].[Test] @locid int as begin
declare @Mns decimal , @dec decimal
select @dec= AVG(CONVERT(NUMERIC(18,2), DATEDIFF(MI,t.Paydate,t.DelDate))) FROM Transaction_tbl t WHERE [email protected];
select @[email protected]%60;
select HH=convert(decimal(10) ,@dec/60), [email protected];
end
我出來說就是: HH | mm | 29 6我出去把在兩個欄返回,,我想出去放一列, 我進出料口把這樣的: HH:MM 29:6我怎麼能做到這一點