0
我有一個存儲過程是這樣的:添加默認列結果
ALTER procedure [dbo].[fetchkey]
@carid nvarchar(50) =null
as
begin
select t.TBarcode, t.Status
from Transaction_tbl t
where [email protected]
end
我的輸出:
TBarcode Status
57173621345 3
我希望得到這樣的輸出:
TBarcode location Status
-----------------------------------------
57173621345 deliverd 3
我需要位置欄來顯示始終只顯示。 那麼我該如何做到這一點?我需要使用一個函數還是有任何簡單的方法?
thanks..working罰款 – user2603688