- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to add a row compression to a DB2 table TAB1?
A compression is used to save the DB2 disk space. The compression can be used either at row level or at a page level. In order to add a row compression in a DB2 table, we can give the following command−
ALTER TABLE DBSET1.TAB1 COMPRESS YES STATIC
We have to use ALTER TABLE for the compression of the DB2 table. The ALTER TABLE reserved words are followed by the name of DB2 table qualified by database.
COMPRESS YES STATIC will complete the row compression for the said table.
- Related Articles
- How to delete a DB2 table TAB1?
- How to add a new column Address in the above DB2 table TAB1?
- How to find the primary key of a DB2 table TAB1?
- How to do a full & incremental MERGECOPY for a DB2 table TAB1?
- How to get the list of all COBOL-DB2 programs using a DB2 table TAB1?
- How to image copy the entire DB2 table TAB1 into a dataset?
- How to find all the foreign keys of a DB2 table TAB1?
- How to find out all the indexes for a DB2 table TAB1?
- How will you add a constraint on above DB2 table TAB1 for ages between 3 to 16 years?
- How to create an ALIAS TAB2 for DB2 table TAB1?
- How to create a DB2 table TAB1 with 4 columns, Student ID, Enrollment ID, Name and Age?
- How to add a new row in a table using jQuery?
- How to add table row in jQuery?
- How to add a unique index on the above table TAB1 for column Enrollment ID (ascending)?
- How to Add Subtotals and Total Row in a Table in Excel?

Advertisements