doc-exports/docs/dli/sqlreference/dli_08_0092.html
Su, Xiaomeng 76a5b1ee83 dli_sqlreference_20240227
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2024-03-27 22:02:33 +00:00

4.9 KiB

Viewing Table Properties

Function

Check the properties of a table.

Syntax

1
SHOW TBLPROPERTIES table_name [('property_name')];

Keywords

TBLPROPERTIES: This statement allows you to add a key/value property to a table.

Parameters

Table 1 Parameters

Parameter

Description

table_name

Table name

property_name

  • If this parameter is not specified, all properties and their values are returned.
  • If a property name is specified, only the specified property and its value are returned.

Precautions

property_name is case sensitive. You cannot specify multiple property_name attributes at the same time. Otherwise, an error occurs.

Example

To return the value of property_key1 in the test table, run the following statement:

1
SHOW TBLPROPERTIES test ('property_key1');