-- 将逗号分隔的字符串转为多行
SELECT unnest(string_to_array('4513,4564,555',',')) as a1;
-- array转为行
SELECT unnest(ARRAY[1,2]);
SELECT * from unnest(ARRAY[1,2],ARRAY['foo','bar','baz']);
-- 将逗号分隔的字符串转为多行
SELECT unnest(string_to_array('4513,4564,555',',')) as a1;
-- array转为行
SELECT unnest(ARRAY[1,2]);
SELECT * from unnest(ARRAY[1,2],ARRAY['foo','bar','baz']);