12394: Espec- Código ANTT

fixes bug#12394
dev:daniel
qua:junia

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@86312 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2018-10-19 19:11:42 +00:00
parent 0f8108f1d8
commit 98689c3341
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE PARADA ADD (CODANTTAUX NUMBER(5))';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'update parada set CODANTTAUX = CODANTT';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
DO $$
BEGIN
ALTER TABLE PARADA ADD (CODANTTAUX NUMBER(5));
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;

View File

@ -0,0 +1,7 @@
DO $$
BEGIN
update parada set CODANTTAUX = CODANTT;
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;