SQL begin/end, PL-SQL-. PL-SQL Oracle SQL. ORA-06550. , PL-SQL , INTO.
SELECT . , , "tableOfBeans" FROM.
- ?
declare var_type VARCHAR2(10);
begin
select case tableOfBeans.beanType
when 'B' then 'Beans'
when 'L' then 'Legumes'
end
into var_type
from tableOfBeans;
end;
, , tableOfBeans . , tableOfBeans, tableOfBeans.beanType = var_type. . , , . .