我无法在PostgreSQL中一次分配多个变量:
这不起作用
with temp_table as (select col1, col2 from another_table)
select into a, b col1, col2 from temp_table
这也不是
with temp_table as (select col1, col2 from another_table)
select col1, col2 into a, b from temp_table
我遇到以下错误:
错误:“,”或附近的语法错误
编辑:以下操作相同:
select a, b into c, d from (values (1, 2), (3, 4)) as ttt (a, b)
这与postgresql版本有关吗?
能请你帮忙吗?
谢谢!