0
0

More than 1 year has passed since last update.

【Snowflake】select文で返す結果のデータ型を確認する

Last updated at Posted at 2023-07-11

はじめに

小ネタです。
SQLの結果が今あなたは何型で返してくれてるんでしたっけ?と確認したいときが、稀によくあると思います。(ない?)

確認方法

system$typeof()関数を使うことによりSELECT文で確認が可能です。

select 'test',system$typeof('test'),
        3.3/3,system$typeof(3.3/3);

(実行結果)
image.png

参考リンク

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0