我想转换此代码:
SELECT column_name as hard_code_value
from table_name
WHERE some_column = ¶meter;
有点像这样
SELECT column_name as (select some_value from some_other_table_name)
from table_name
WHERE some_column = ¶meter;
我也尝试过使用数据透视表,但是也没有在' IN'中使用动态值。条件: 我想添加一个表值作为别名。有可能吗?