This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes ALTER TABLE - regarding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ALTER TABLE - regarding" Watch "ALTER TABLE - regarding" New topic
Author

ALTER TABLE - regarding

Sub swamy
Ranch Hand

Joined: Oct 02, 2002
Posts: 121
I get the below exception during ALTER TABLE statement

SQL0109N ALTER TABLE "<>" specified attributes for column "" that are not compatible with the existing column. SQLSTATE=42837.

I tried a google and didnt get any useful information - or perhaps i was unable to interpret the information suitably. Any reason why this exception occurs during the ALTER table statement.

Datatbase: DB2 on z/OS.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Can you please post your current table structure and your ALTER TABLE sql statement, that way people will be able to see the problem if any.
[ December 09, 2008: Message edited by: Vijitha Kumara ]

SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ALTER TABLE - regarding
 
Similar Threads
question about deleting a table column
problem when Columnrenamed
Sql query ignores variable
Struts2 problem with mapping heritance annotations
Regarding Foreign Key Restricts when Alter data type in sql table