在PostgreSQL中使用CASE一次影响多列
我有一个SELECT有这些表达式Postgres语句:
,CASE WHEN (rtp.team_id = rtp.sub_team_id) THEN 'testing' ELSE TRIM(rtd2.team_name) END AS testing_testing,CASE WHEN (rtp.team_id = rtp.sub_team_id) THEN 'test example' ELSE TRIM(rtd2.normal_data) END AS test_response,CASE WHEN (rtp.team_id = rtp.sub_team_id) ...