053 Question No. 256

Source: Internet
Author: User


256.Sales details is being stored on a daily basis in the sales_2007 table. A large amount of data is
Added to the table daily. To save disk space, you issued the following command:
ALTER TABLE sales_2007 COMPRESS for all OPERATIONS;
What would is the outcome of this command?
A. It produces an error because data already exists in the table.
B. It produces an error because compression can is enabled at table creation only.
C. It compresses all data added or modified henceforth and the existing data in the table are not
Compressed immediately.
D. It immediately compresses all existing data as well as new data, resulting from either fresh additions or
Modifications to existing data.
Answer: C


You specify table compression with theCOMPRESSclause of theCREATE TABLEstatement. You can enable the compression for a existing table by using the these clauses in anALTER TABLEstatement. in the This case, only the data is inserted or updated after compression are enabled is compressed. Similarly, can disable table compression for a existing compressed table with theALTER TABLE...NOCOMPRESSstatement. In the this case, the all data has already compressed remains compressed, and new data is inserted uncompressed.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

053 Question No. 256

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.