2023年11月27日月曜日

postgre sql 変数定義

with vars as (
  select '休日' as hol
)
select
  holiday,
  case
    when holiday_name = vars.hol then '振替休日'
  else holiday_name 
  end,
  day_of_week
from vars, sales.mast_祝日マスタ;




0 件のコメント:

コメントを投稿

chrome 日本語入力できない。GTK4互換問題

vi /usr/share/applications/google-chrome.desktop vi /usr/share/applications/chromium-browser.desktop Exec=/usr/bin/google-chrome-stable  --g...