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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set column to default in db2

Status
Not open for further replies.

krishrad

Technical User
Feb 5, 2008
12
0
0
US
i have a table with columns i have to alter two columns with default value as 'Y'. Please let me knwo how can i achieve it. i tried using the alter but it is not supporting the syntax. alter table <table name> alter column <column name> set default 'y';

i dont think db2 support this kind of alter. what is the better way. One way is to recreate the table. is there any better way for this.
 
Which DB2 are you using ? z/OS ?
In LUW you should be able to do this.
In case its LUW: which error/sqlcode do you get ?

Juliane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top