SW ENGINEERING/Postgres
[PostgreSQL] BASIC - Data Types - 2
부울, 문자, 숫자, 임시, 배열, json, uuid 및 특수 유형을 포함한 PostgreSQL 데이터 유형 Arrays CREATE TABLE contacts ( id serial PRIMARY KEY, name VARCHAR (100), phones TEXT [] ); 삽입 INSERT INTO contacts (name, phones) VALUES('John Doe',ARRAY [ '(408)-589-5846','(408)-589-5555' ]); -- same INSERT INTO contacts (name, phones) VALUES('Lily Bush','{"(408)-589-5841"}'), ('William Gate','{"(408)-589-5842","(408)-589-58423"}')..
2021. 9. 6. 13:40
최근댓글