0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

テーブルを使わず、テーブルのようなものを仮想で作るやり方

Posted at

with句を使って、selectで出力だけ行なったものを、fromで呼び出すと出来る

WITH
  mock AS (
    select
      NOW ()
  )
select
  *
from
  mock;

スクリーンショット 2025-01-26 12.11.21.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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?