| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> cannot call alter table from within block
Apparently I cannot call an alter table statement from within a block.
DECLARE
lv_col NUMBER;
BEGIN
BEGIN
select count(*)
into lv_col
from all_tab_columns
where table_name = 'EMPLOYEE'
and column_name = 'MIDDLE_INITIAL'
and owner = 'HR';
if lv_col = 0
THEN
alter table employee add middle_initial varchar(255) null;
END IF;
END;
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Aug 01 2000 - 00:00:00 CDT
![]() |
![]() |