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 件のコメント:

コメントを投稿

シャットダウン時の後処理 (shutdown)

# vi /etc/systemd/system/drop.service [Unit] Description= stop httpgwd DefaultDependencies=no Before=shutdown.target RefuseManualStart=true ...