Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> PL/SQL Question

PL/SQL Question

From: Curtis <hystable_at_yahoo.com>
Date: 19 Jan 2005 09:04:05 -0800
Message-ID: <1106154245.472707.202240@z14g2000cwz.googlegroups.com>


Is it possible to do things like alter tables or create tables within PL/SQL? I tried the following, but keep getting a PLS-00103 error.

BEGIN alter table workqueue_order_doc disable constraint FK_WORKQ_ORDER_DOC_WORKQ_ORDER; create table tmp_workqueue_order as
select *
from rsiplate.workqueue_order
where current_workqueue_folder_id in
( select distinct workqueue_folder_id
from rsiplate.workqueue_workgroup_proflow
);

truncate table workqueue_order;

insert into workqueue_order
(
select *
from tmp_workqueue_order
);

alter table workqueue_order_doc enable constraint FK_WORKQ_ORDER_DOC_WORKQ_ORDER; END; Thanks!

Curtis Received on Wed Jan 19 2005 - 11:04:05 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US