postgresql unnest将array转换成多行

  • Post author:
  • Post category:其他


This function is used to expand an array to a set of rows.

例如:

select 'host-'||h from unnest(array['1','2']) as h

输出:

在这里插入图片描述



版权声明:本文为weixin_43632687原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。