RDBPROD: How to conditionally execute an ALTER TABLE statement

(Doc ID 1987954.1)

Last updated on APRIL 03, 2017

Applies to:

Oracle Rdb Server on OpenVMS - Version 7.1 and later
HP OpenVMS Itanium
HP OpenVMS Alpha

Goal

A number of copies of a database contain a table that may have been altered in some cases to include a new column. Using Interactive SQL, is it possible to check the table in a database and add a column to those versions that do not already have the new column defined? 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms