0
爲什麼我在select top @recNo
及彼語法錯誤?
create procedure getTopAccounts
(
@recNo int
)
as
begin
select top 1 accDesc, accNum
from
(select top @recNo accDesc,accNum
from
ACCOUNTS_TABLE
order by
accNum desc)
as a order by accNum
end