📜  为从 sql 代码示例中的 case 语句生成的值赋予列名

📅  最后修改于: 2022-03-11 15:04:54.141000             🧑  作者: Mango

代码示例1
SELECT *, CASE WHEN a = 'test' THEN 'yes' END as value FROM (
   SELECT col1 as a FROM table
)