-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
41 lines (33 loc) · 1.16 KB
/
Copy pathdatabase.sql
File metadata and controls
41 lines (33 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#database schema ----------please source this to your database;
drop database if exists skill_test;
create database skill_test;
use skill_test;
#first table --------------------------
drop table if exists general_info;
create table general_info(
id int(10) primary key auto_increment,
name varchar(256),
email varchar(256),
password varchar(256)
);
# sample insert
insert into general_info (name,email,password)values('billal','[email protected]','billal123');
#second table -----------------------
drop table if exists contact_info;
create table contact_info(
id int(10) primary key auto_increment,
address_one varchar(256),
address_two varchar(256),
country varchar(128),
phone varchar(64)
);
# sample insert
insert into contact_info (address_one,address_two,country,phone)values('kalabagan','dhaka','bd','01***55**55');
#third table for dropdown list of country----------------------------------
drop table if exists country;
create table country(
id int(10) primary key auto_increment,
country varchar(256)
);
#some insertation of sample country------------
insert into country(country)values('Bangladesh'),('India'),('Pakistan'),('Srilanka'),('Nepal'),('Bhutan');