forked from shashirajraja/onlinebookstore
-
Notifications
You must be signed in to change notification settings - Fork 11
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
b2e4e0d
commit 2611ac5
Showing
1 changed file
with
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
### Copy and Paste the following MYSQL commands to make a dummy database for this Project : | ||
|
||
|
||
create database onlinebookstore; | ||
create database if not exists onlinebookstore; | ||
|
||
use onlinebookstore; | ||
|
||
create table books(barcode varchar(100) primary key, name varchar(100), author varchar(100), price int, quantity int); | ||
create table if not exists books(barcode varchar(100) primary key, name varchar(100), author varchar(100), price int, quantity int); | ||
|
||
create table users(username varchar(100) primary key,password varchar(100), firstname varchar(100),lastname varchar(100),address text, phone varchar(100),mailid varchar(100),usertype int); | ||
create table if not exists users(username varchar(100) primary key,password varchar(100), firstname varchar(100),lastname varchar(100),address text, phone varchar(100),mailid varchar(100),usertype int); | ||
|
||
|
||
insert into books values('9780134190563','The Go Programming Language','Alan A. A. Donovan and Brian W. Kernighan',400,8); | ||
|
@@ -26,15 +26,15 @@ insert into books values('9780132350884','Clean Code: A Handbook of Agile Softw | |
|
||
insert into books values('9780132181273','Domain-Driven Design','Eric Evans',560,28); | ||
|
||
insert into books values('9781951204006','A Programmer's Guide to Computer Science','William Springer',188,4); | ||
insert into books values('9781951204006','A Programmers Guide to Computer Science','William Springer',188,4); | ||
|
||
insert into books values('9780316204552','The Soul of a New Machine','Tracy Kidder',293,30); | ||
|
||
insert into books values('9780132778046','Effective Java','Joshua Bloch',368,21); | ||
|
||
insert into books values('9781484255995','Practical Rust Projects','Shing Lyu',257,15); | ||
|
||
insert into users values('User','Password','First','User','My Home','42502216225','User@gmail.com',2); | ||
insert into users values('demo','demo','Demo','User','Demo Home','42502216225','demo@gmail.com',2); | ||
|
||
insert into users values('Admin','Admin','Mr.','Admin','Haldia WB','9584552224521','[email protected]',1); | ||
|
||
|