构建数组的方式:drop table test;create table test( id serial, col1 int[], col2 int[2], col3 int[]...-- 数组编写方式select '{{how,are},{are,you}}'::varchar[];select array[[1,2],[3,4]];insert into test (col1,col2...,col3) values ('{1,2,3}','{4,5,6}','{7,8,9}');insert into test (col1,col2,col3) values ('{1,2,3}','{4,5,6...}',array[[1,2],[3,4]]);insert into test (col1,col2,col3) values ('{1,2,3}','{4,5,6}','{{1,2},{3,4}}')...select ('{"\"how\",are"}'::varchar[])[1];数组的比较方式-- 包含select array[1,2] @> array[1];-- 被包含select array