-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8bec6e
commit 44ca31b
Showing
9 changed files
with
355 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- https://cratedb.com/docs/sql-99/en/latest/chapters/01.html | ||
-- https://www.postgresql.org/docs/16/sql-createtable.html | ||
-- https://www.postgresql.org/docs/16/sql-insert.html | ||
-- https://www.postgresql.org/docs/16/sql-select.html | ||
CREATE TABLE city ( | ||
name VARCHAR, | ||
population INT, | ||
timezone INT | ||
); | ||
|
||
INSERT INTO city (name, population, timezone) | ||
VALUES ('San Francisco', 852469, -8); | ||
|
||
INSERT INTO city (name, population, timezone) | ||
VALUES ('New York', 8405837, -5); | ||
|
||
SELECT | ||
name, | ||
population, | ||
timezone | ||
FROM city; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- https://cratedb.com/docs/sql-99/en/latest/chapters/01.html | ||
-- https://www.postgresql.org/docs/16/sql-createtable.html | ||
-- https://www.postgresql.org/docs/16/sql-insert.html | ||
-- https://www.postgresql.org/docs/16/sql-select.html | ||
CREATE TABLE city ( | ||
name VARCHAR, | ||
population INT, | ||
timezone INT | ||
); | ||
|
||
INSERT INTO city (name, timezone) | ||
VALUES ('San Francisco', -8); | ||
|
||
INSERT INTO city (name, population) | ||
VALUES ('New York', 8405837); | ||
|
||
SELECT | ||
name, | ||
population, | ||
timezone | ||
FROM city; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
"table_name": ["city"] | ||
} | ||
[{ "table_name": "city" }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
"table_name": ["city", "town"] | ||
} | ||
[{ "table_name": "city" }, { "table_name": "town" }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
{ "name": "San Francisco", "population": 852469, "timezone": -8 }, | ||
{ "name": "New York", "population": 8405837, "timezone": -5 } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
{ "name": "San Francisco", "population": null, "timezone": -8 }, | ||
{ "name": "New York", "population": 8405837, "timezone": null } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.