最佳答案
你可以用工会
如果两列都在同一个表中
select connection from my_table
union
select followed_id from my_table
如果在不同的表中,则更改表名
select connection from my_table1
union
select followed_id from my_table2
关于sql - 使用PostgreSQL只需将2列合并为一个,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48194292/