Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 红移数组\u到\u字符串不适用于union_Sql_Arrays_Amazon Redshift_Union - Fatal编程技术网

Sql 红移数组\u到\u字符串不适用于union

Sql 红移数组\u到\u字符串不适用于union,sql,arrays,amazon-redshift,union,Sql,Arrays,Amazon Redshift,Union,我正在尝试使用红移中的并集运行数组\u到\u字符串,但我一直收到以下错误消息: ERROR: Specified types or functions (one per INFO message) not supported on Redshift tables. [SQL State=0A000] 这个问题本身非常直截了当,所以我不知道为什么我一直得到这个问题,有人能给我建议吗 (SELECT array_to_string(array(select column_name::text f

我正在尝试使用红移中的并集运行数组\u到\u字符串,但我一直收到以下错误消息:

ERROR: Specified types or functions (one per INFO message) not supported on Redshift tables. [SQL State=0A000] 
这个问题本身非常直截了当,所以我不知道为什么我一直得到这个问题,有人能给我建议吗

(SELECT array_to_string(array(select column_name::text from information_schema.columns where table_name= 'customer_insert' order by ordinal_position),'|'))
UNION 
(select "user.firstname"::text from digital.customer_insert where "user.isocountrycode" = 'BE' limit 2)

不幸的是,红移不支持Postgres的数组类型:

亚马逊红移并不完全是Postgres。