FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python_programming_/sql/create-db-inventory.sql at main · machphy/python_programming_ · GitHub
machphy
/
python_programming_
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
4
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python_programming_
/
sql
/
create-db-inventory.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (20 loc) · 1.02 KB
Breadcrumbs
python_programming_
/
sql
/
create-db-inventory.sql
Copy path
File metadata and controls
23 lines (20 loc) · 1.02 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DROP
DATABASE
IF EXISTS
`
sql_inventory
`
;
CREATE
DATABASE
`
sql_inventory
`;
USE
`
sql_inventory
`
;
CREATE
TABLE
`
products
` (
`
product_id
`
int
(
11
)
NOT NULL
AUTO_INCREMENT,
`
name
`
varchar
(
50
)
NOT NULL
,
`
quantity_in_stock
`
int
(
11
)
NOT NULL
,
`
unit_price
`
decimal
(
4
,
2
)
NOT NULL
,
PRIMARY KEY
(
`
product_id
`
)
) ENGINE
=
InnoDB AUTO_INCREMENT
=
11
DEFAULT CHARSET
=
utf8mb4 COLLATE
=
utf8mb4_0900_ai_ci;
INSERT INTO
`
products
`
VALUES
(
1
,
'
Foam Dinner Plate
'
,
70
,
1
.
21
);
INSERT INTO
`
products
`
VALUES
(
2
,
'
Pork - Bacon,back Peameal
'
,
49
,
4
.
65
);
INSERT INTO
`
products
`
VALUES
(
3
,
'
Lettuce - Romaine, Heart
'
,
38
,
3
.
35
);
INSERT INTO
`
products
`
VALUES
(
4
,
'
Brocolinni - Gaylan, Chinese
'
,
90
,
4
.
53
);
INSERT INTO
`
products
`
VALUES
(
5
,
'
Sauce - Ranch Dressing
'
,
94
,
1
.
63
);
INSERT INTO
`
products
`
VALUES
(
6
,
'
Petit Baguette
'
,
14
,
2
.
39
);
INSERT INTO
`
products
`
VALUES
(
7
,
'
Sweet Pea Sprouts
'
,
98
,
3
.
29
);
INSERT INTO
`
products
`
VALUES
(
8
,
'
Island Oasis - Raspberry
'
,
26
,
0
.
74
);
INSERT INTO
`
products
`
VALUES
(
9
,
'
Longan
'
,
67
,
2
.
26
);
INSERT INTO
`
products
`
VALUES
(
10
,
'
Broom - Push
'
,
6
,
1
.
09
);
Back
|
FazBrowse Home
|
New Git URL