Skip to content

Commit 1736fc8

Browse files
committed
Document Postgres Array syntax
1 parent 16c9091 commit 1736fc8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sql/arrays-and-maps.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Array literals `[1, "two", 3]`. Supported by:
99
- [BigQuery][bigquery-literals].
1010
- [N1QL][n1ql-literals].
1111

12+
Array literals `ARRAY[1, 2, 3]`. Supported by:
13+
14+
- [BigQuery][bigquery-literals].
15+
- [PostgreSQL][postgres-literals].
16+
1217
Map literals in JSON style `{"foo": 1, "bar": "John"}`. Supported by:
1318

1419
- [N1QL][n1ql-literals].
@@ -22,9 +27,12 @@ Supported by:
2227
- [Hive][]
2328
- [Spark][]
2429
- [N1QL][]
30+
- [PostgreSQL][]
2531

2632
[hive]: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-OperatorsonComplexTypes
2733
[spark]: https://stackoverflow.com/questions/34916038/sparksql-sql-syntax-for-nth-item-in-array
2834
[n1ql-literals]: https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/datatypes.html#arrays
2935
[n1ql]: https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/nestedops.html#field-selection
36+
[postgresql]: https://www.postgresql.org/docs/current/arrays.html#ARRAYS-ACCESSING
3037
[bigquery-literals]: https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical#array_literals
38+
[postgres-literals]: https://www.postgresql.org/docs/current/arrays.html

0 commit comments

Comments
 (0)