biotwang 发表于 2016-6-25 13:42:15

【dbdao.com MySQL OCP认证专题】- MySQL 5.6 - OCP 考题讲解 - 2

本帖最后由 biotwang 于 2016-6-25 13:46 编辑

【dbdao.com MySQL OCP认证专题】- MySQL 5.6 - OCP 考题讲解

2.

Consider the following statement on a RANGE partitioned table:ALTER TABLE orders DROP PARTITION p1, p3;What is the outcome of executing the above statement?
A.
Only the first partition (p1) will be dropped as only one can be dropped at any time.
B.
All data in p1 and p3 partitions are removed, but the table definition remains unchanged.
C.
A syntax error will result as you cannot specify more than one partition in the same statement.
D.
All data in p1 and p3 partitions are removed and the table definition is changed.
--------------------------------------------------------------------

答案:D
在删除部分分区后,可以使用show create table查看其定义也一并改变了

分析:


参考:
http://dev.mysql.com/doc/refman/5.7/en/alter-table-partition-operations.html
页: [1]
查看完整版本: 【dbdao.com MySQL OCP认证专题】- MySQL 5.6 - OCP 考题讲解 - 2