SHOW VERSIONS IN APPLICATION PACKAGE¶
指定されたアプリケーションパッケージで定義されているバージョンをリストします。
- こちらもご参照ください。
ALTER APPLICATION、 CREATE APPLICATION、 DESCRIBE APPLICATION、 DROP APPLICATION
構文¶
SHOW VERSIONS [ LIKE <pattern> ]
IN APPLICATION PACKAGE <name>;
パラメーター¶
LIKE 'pattern'オプションで、オブジェクト名でコマンド出力をフィルタリングします。フィルターは、 SQL ワイルドカード文字(
%および_)をサポートする、 大文字と小文字を区別しない パターンマッチングを使用します。たとえば、次のパターンは 同じ 結果を返します。
... LIKE '%testing%' ...... LIKE '%TESTING%' .... デフォルト: 値なし(フィルタリングは出力に非適用)。
IN APPLICATION PACKAGE nameバージョンを表示するアプリケーションパッケージの識別子を指定します。
使用上の注意¶
このコマンドの実行には、稼働中のウェアハウスは必要ありません。
このコマンドは、現在のユーザーの現在のロールに少なくとも1つのアクセス権限が付与されているオブジェクトのみを返します。
MANAGE GRANTS アクセス権限により、所有者はアカウント内のすべてのオブジェクトを暗黙的に参照できます。デフォルトでは、アカウント管理者( ACCOUNTADMIN ロールを持つユーザー)とセキュリティ管理者( SECURITYADMIN ロールを持つユーザー)のみが MANAGE GRANTS 権限を持っています。
このコマンドの出力を後処理するには、 パイプ演算子 (
->>)または RESULT_SCAN 関数。どちらのコンストラクトも、出力を クエリできる結果セットとして扱います。For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.
When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column
type, specifySELECT "type".You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.
例¶
SHOW VERSIONS IN APPLICATION PACKAGE hello_snowflake_app;
+----------------+-------+---------+---------+-------------------------------+------------+-----------+-------------+-------+---------------+
| version | patch | label | comment | created_on | dropped_on | log_level | trace_level | state | review_status |
|----------------+-------+---------+---------+-------------------------------+------------+-----------+-------------+-------+---------------|
| V1_0 | 0 | NULL | NULL | 2023-05-10 17:11:47.696 -0700 | NULL | OFF | OFF | READY | NOT_REVIEWED |
+----------------+-------+---------+---------+-------------------------------+------------+-----------+-------------+-------+---------------+