Skip to main content
SHOW PARTITIONS displays partition information, including common partitions and temporary partitions.

Syntax

NOTE This syntax only supports tables ("ENGINE" = "OLAP"). Since v3.0, this operation requires the SELECT privilege on the specified table. For v2.5 and earlier versions, this operation requires the SELECT__PRIV privilege on the specified table.

Description of return fields

Examples

  1. Display information of all regular partitions from the specified table site_access under the specified database test.
  2. Display information of all temporary partitions from the specified table site_access under the specified database test.
  3. Display the information of the specified partition p1 of the specified table site_access under the specified database test.
  4. Display the latest partition information of the specified table site_access under the specified database test.