Skip to main content

SHOW SHARES

Introduced or updated: v1.2.949
ENTERPRISE EDITION FEATURE
Data Sharing is an Enterprise Edition feature. Contact Databend Support for a license.

Shows the Shares of the current tenant (OUTBOUND) and the Shares that give access to the current tenant (INBOUND).

Syntax​

SHOW SHARES [ LIKE '<pattern>' ] [ LIMIT <rows> ]

LIKE filters the Share names. WHERE is not supported.

Output​

ColumnDescription
created_onThe time of creation.
kindOUTBOUND or INBOUND.
owner_accountThe provider tenant ID.
nameThe Share name.
database_nameThe name of the granted database. Empty if the Share does not grant a database.
toThe consumer accounts. Empty for INBOUND Shares.
ownerNot used. Always empty.
commentThe comment.
listing_global_nameNot used. Always empty.

For the privileges, see Access Control.

Examples​

SHOW SHARES;
SHOW SHARES LIKE 'sales%' LIMIT 10;
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today