-
Notifications
You must be signed in to change notification settings - Fork 7
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
2b8d8d8
commit 5485b00
Showing
7 changed files
with
85 additions
and
5 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
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
File renamed without changes.
File renamed without changes.
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,38 @@ | ||
DROP TABLE if exists categories; | ||
|
||
(Empty response) | ||
|
||
CREATE TABLE categories ( | ||
category_id SERIAL NOT NULL PRIMARY KEY, | ||
category_name VARCHAR(255), | ||
description VARCHAR(255) | ||
); | ||
|
||
(Empty response) | ||
|
||
INSERT INTO categories (category_name, description) | ||
VALUES | ||
('Beverages', 'Soft drinks, coffees, teas, beers, and ales'), | ||
('Condiments', 'Sweet and savory sauces, relishes, spreads, and seasonings'), | ||
('Confections', 'Desserts, candies, and sweet breads'), | ||
('Dairy Products', 'Cheeses'), | ||
('Grains/Cereals', 'Breads, crackers, pasta, and cereal'), | ||
('Meat/Poultry', 'Prepared meats'), | ||
('Produce', 'Dried fruit and bean curd'), | ||
('Seafood', 'Seaweed and fish'); | ||
|
||
(Empty response) | ||
|
||
select * from categories; | ||
|
||
category_id,category_name,description, | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
Row { columns: [Column { name: "category_id", type: Int4 }, Column { name: "category_name", type: Varchar }, Column { name: "description", type: Varchar }] } | ||
|
||
|
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,22 @@ | ||
|
||
DROP TABLE if exists categories; | ||
|
||
CREATE TABLE categories ( | ||
category_id SERIAL NOT NULL PRIMARY KEY, | ||
category_name VARCHAR(255), | ||
description VARCHAR(255) | ||
); | ||
|
||
INSERT INTO categories (category_name, description) | ||
VALUES | ||
('Beverages', 'Soft drinks, coffees, teas, beers, and ales'), | ||
('Condiments', 'Sweet and savory sauces, relishes, spreads, and seasonings'), | ||
('Confections', 'Desserts, candies, and sweet breads'), | ||
('Dairy Products', 'Cheeses'), | ||
('Grains/Cereals', 'Breads, crackers, pasta, and cereal'), | ||
('Meat/Poultry', 'Prepared meats'), | ||
('Produce', 'Dried fruit and bean curd'), | ||
('Seafood', 'Seaweed and fish'); | ||
|
||
|
||
select * from categories; |
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