New Chapter 16 code and data on working with JSON
This commit is contained in:
parent
f9a6b17912
commit
343a695984
@ -41,7 +41,7 @@
|
||||
|
||||
CREATE TABLE films (
|
||||
id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
||||
film jsonb
|
||||
film jsonb NOT NULL
|
||||
);
|
||||
|
||||
COPY films (film)
|
||||
@ -199,7 +199,7 @@ WHERE film ?& '{rating, genre}';
|
||||
|
||||
CREATE TABLE earthquakes (
|
||||
id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
||||
earthquake jsonb
|
||||
earthquake jsonb NOT NULL
|
||||
);
|
||||
|
||||
COPY earthquakes (earthquake)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user