-2
這通常會在SQL Server Express中創建一個存儲過程,但我不確定如何在Oracle 11g中重寫它,因爲它不包含「@」符號。任何人都可以爲我轉換這個好嗎?如何將具有參數的SQL Server存儲過程轉換爲具有參數的Oracle存儲過程?
create procedure search_expenses
@startdate as datetime,
@enddate as datetime
as
begin
select
amount, description, trxdate, bankaccountid
from
expense
where
trxdate between @startdate and @enddate;
end
go
你花了多長時間研究這個的例子嗎?我敢打賭,我可以在5分鐘內找到答案。 https://docs.oracle.com/cd/E18283_01/appdev.112/e17126/create_procedure.htm – 2014-12-08 04:53:39
使用swiss sql在線轉換器,可能會對您有所幫助 – 2014-12-08 04:56:13
我試圖在Oracle中轉換它並且無法使其工作...不斷說我需要一個INTO關鍵字...感謝負面投票...真正有幫助 – Jae 2014-12-08 05:22:08