Slide 91
Slide 91 text
Advantage of PostgreSQL
demo=# CREATE TABLE public.users
(
id serial NOT NULL,
name character varying(128) NOT NULL,
properties jsonb NOT NULL,
CONSTRAINT users_pkey PRIMARY KEY (id)
);
demo=# select * FROM users;
id | name | properties
----+------+-------------------------------------------------
1 | test | {}
2 | test | {}
4 | hoge | {"age": 18, "nickname": "hoge"}
3 | test | {"age": 18, "nickname": "test"}
6 | fuga | {"age": 20, "nickname": "fuga"}
7 | bar | {"age": 40, "gender": "man", "nickname": "foo"}
(6 行)