这段代码有问题吗?
SELECT public."Listing" FROM regexp_split_to_table( public."Listing".amenities , ',') AS foo;
专栏设施是一个varchar数组,我想将它们拆分。
答案 0 :(得分:1)
错误消息显示:"Listing"
不在FROM列表中:
SELECT foo.*
FROM public."Listing" as l
cross join regexp_split_to_table(l.amenities , ',') AS foo;