Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

insert array postgresql

create table example(arr smallint[]);
insert into example(arr) values('{1, 2, 3}');
-- alternative syntax
create table example(arr smallint[]);
insert into example(arr) values(array[1, 2, 3]);
 
PREVIOUS NEXT
Tagged: #insert #array #postgresql
ADD COMMENT
Topic
Name
5+6 =