🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 10-03-2012 04:18 PM
(5218 views)
Greetings all. I'm hitting a DB2 table that has around 100 columns, and I only want 5 of them. Is there a quick way to drop them all excluding the 5 I want, without having to explicitly type them all out in a drop statement?
Greg
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Instead of DROP= use KEEP= for the variables you want.
The pain is when the desired number is about half of the variables...
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Instead of DROP= use KEEP= for the variables you want.
The pain is when the desired number is about half of the variables...
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, I knew it had to be something easy like that.
Greg