Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set serveroutput on;
- declare
- -- Запись
- type t_recx is record (
- a varchar2(10) not null := '',
- b integer
- );
- -- Таблица записей
- type t_tbl_recx is table of t_recx index by binary_integer;
- -- Переменная
- v_recx t_tbl_recx;
- begin
- -- Присваиваем значение полю записи
- v_recx(1).a := 'BBB'; -- На этой строке ошибка, хотя тип объявлен как varchar2
- dbms_output.put_line(v_recx(1).a);
- end;
- a varchar2(10) not null := '',
- v_recx(1).a := 'BBB';
Add Comment
Please, Sign In to add comment