SHOW VERSIONS IN DATASET

statementsupportedAI & ML

docs.snowflake.com ↗

Displays information about the datasets in your account at either the schema or database level.

Syntax

supportedpartialnot supportednot scored

SHOW VERSIONS [ LIKE '<pattern>' ] IN DATASET <dataset_name>
  [ LIMIT <rows>]

Parameters

NameRequiredDescription
IN DATASET dataset_nameName of dataset for which versions are displayed.
LIKE patternRestricts the list of returned datasets to those matching the specified pattern. Matching is case-insensitive.
LIMIT numLimits the maximum number of rows returned.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP or USAGE | Dataset | Provides the privilege to show the dataset versions within the account. Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also