Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以从查询结果中别名列名吗?为什么这个查询不起作用?
select column_code AS (select column_name from column_registers where column_registers_id = column_code) from other_table;
我的目标是查询结果中的“COLUMN NAME ALIASED”。谢谢。
应该是这样的
select (select column_name from column_registers where column_registers_id = column_code) AS column_code from other_table;