View previous topic :: View next topic
|
Author |
Message |
ursprasanna Warnings : 2 New User
Joined: 15 May 2006 Posts: 20 Location: chennai
|
|
|
|
DB2 dosent allow deleting a column from the table . why is it so. I would like to what actually restricts from doing that . |
|
Back to top |
|
|
hariavinash
New User
Joined: 04 Jan 2006 Posts: 64
|
|
|
|
you can DROP a table only. |
|
Back to top |
|
|
Hanfur
Active User
Joined: 21 Jun 2006 Posts: 104
|
|
|
|
1.U have to create table first with dropped column defenition.
2.Unload data using PARMS as SQL usnig DSTIUAL utility excluding the
row that u dont want
SELECT EMAPNAME,SALRY...
FROM TABLE
WHERE ...
3.INSERT that data to the new table using this unloaded data by using the same Utiltity.
4.DROP original Table.
I assume u dont have any Constraits set up in the parent table.
-------
2.Mapfail occurs when user not enters any data and without that press Function keys. For this to avoid easiset way is to always set the MDT set irrespective of whether user enters some data or not.
Otherwise u have to check Mapfail condition after receieving the map ...failing to do so would terminate the task with an abnormal end.
-Han |
|
Back to top |
|
|
|