SQL ARRAY: Difference between revisions
Jump to navigation
Jump to search
(→Insert) |
(→Insert) |
||
Line 18: | Line 18: | ||
INSERT INTO some_table (some_column, ...) VALUES (ARRAY['string1', 'string2', ...], ...) | INSERT INTO some_table (some_column, ...) VALUES (ARRAY['string1', 'string2', ...], ...) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Implementation-Specific Details= | |||
{| class="wikitable" style="text-align: left;" | |||
|- | |||
| [[PostgreSQL_Concepts#Arrays|PostgreSQL]] || MySQL | |||
|- | |||
|} |
Revision as of 22:55, 24 May 2024
Internal
Overview
Declaration
SQL declaration for unidimensional arrays:
CREATE TABLE some_table (
some_column text ARRAY
...
)
ARRAY
can be declared for any data types.
Insert
INSERT INTO some_table (some_column, ...) VALUES (ARRAY['string1', 'string2', ...], ...)
Implementation-Specific Details
PostgreSQL | MySQL |