0
存儲過程我的SQL Server是問題而將SQL Server存儲過程,Oracle存儲過程
ALTER PROCEDURE myproc
@iii NVARCHAR(255)
AS
BEGIN
select * from dbo.users where (first_name = @iii OR @iii = '');
END;
雖然
運行它
exec myproc ''
獲取所有記錄
但在oracle中
CREATE OR REPLACE PROCEDURE myproc (fname IN STRING, name1 OUT STRING) AS
BEGIN
SELECT "first_name" INTO name1 FROM "users" WHERE ("first_name" = fname OR fname = '');
END;
但通過''Parameter Not Found Data執行它。
如何獲取所有數據?