Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql file to add columns only if needed

Status
Not open for further replies.

2Fuzzy4U

Programmer
Dec 2, 2002
26
NL
After tackeling my upgrade scripts for Oracle, SQLServer and SQLAnywhere now I starting with DB2.

I'm trying to write an upgrade script that adds column and/or data only if the column doesn't exist yet.
However I can't seem to find the right documents or info to get a good start.
I guess I already have the part that defines the sp which should return me 0 or 1 occurences of the column.
But I don't know how to collect the result.

If somebody has an example or can point me to a realy usefull website?

Greetzzz
Coretta
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top