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!

Add column Packed Decimal 1

Status
Not open for further replies.

simian336

Programmer
Sep 16, 2009
723
US
Does anyone know the syntax to Alter table and add Packed-Decimal columns?

I have a field FRNPA that is FIELD TYPE=P, FIELD LENGTH=3, DEC POS=0 and I need to duplicate it with a tmp field.

Guessing something like

Alter table test add column TMPPA P(3,0)

Thanks

Simi
 
I'm using DB2 on IBM iSeries and here the DECIMAL field is signed packed field.
So, if you need signed packed decimal with length 3, without decimal positions simply declare it as DECIMAL(3, 0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top