SW ENGINEERING/Postgres
[PostgreSQL] BASIC - Data Types - 1
부울, 문자, 숫자, 임시, 배열, json, uuid 및 특수 유형을 포함한 PostgreSQL 데이터 유형 Boolean - 참, 거짓, null - 1, yes, y, t, true -> true - 0, no, flase, f -> false true false ‘t’ ‘f ‘ ‘true’ ‘false’ ‘y’ ‘n’ ‘yes’ ‘no’ ‘1’ ‘0’ CREATE TABLE stock_availability ( product_id INT PRIMARY KEY, available BOOLEAN NOT NULL ); INSERT INTO stock_availability (product_id, available) VALUES (100, TRUE), (200, FALSE), (300, 't'), (40..
2021. 9. 6. 11:57
최근댓글