newbie stored procedures
Jeg har abolut ingen anelse om hvordan disse struktureres har prøvet at oprette følgende:CREATE OR REPLACE PROCEDURE SelectProc(strSel in VARCHAR2,strInId in VARCHAR2)
IS
BEGIN
if strSel='a' then
select a_RTF from a_TABLE WHERE a_ID=strInId;
elsif strSel='b' then
select b_RTF from b_TABLE WHERE b_ID=strInId;
elsif strSel='c' then
select c_RTF from c_TABLE WHERE c_ID=strInId;
end if;
END;
men denne kan ikke køres. hvad skal jeg gøre?