I wrote a stored procedure:
CREATE OR REPLACE PROCEDURE test1
AS
strSchema VARCHAR2(20);
BEGIN
EXECUTE IMMEDIATE
'ALTER TABLE TABLE_A DISABLE CONSTRAINT TABLEA_CONTRAINT ';
'ALTER TABLE TABLE_A DISABLE CONSTRAINT TABLEB_CONTRAINT ';
'ALTER TABLE TABLE_C DISABLE CONSTRAINT TABLEC_CONTRAINT ';
COMMIT;
END test1;
But I'm getting the following error during compilation, not sure why.
PLS-00103: Encountered the symbol "ALTER TABLE " when expecting one of the following:
( begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge
The symbol "(" was substituted for "ALTER TABLE " to continue.
COMMIT
forDDL
. – Lalit Kumar B