-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinital.sql
More file actions
62 lines (50 loc) · 2.36 KB
/
inital.sql
File metadata and controls
62 lines (50 loc) · 2.36 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
create database sit774;
use sit774;
drop table survey;
create table survey(
id int auto_increment primary key,
firstname varchar(20) not null,
lastname varchar(20) not null,
Email varchar(20) not null,
favouritebutterflylist varchar(50) not null,
comment varchar(100),
committime datetime
);
drop table member;
create table member (
id int auto_increment primary key,
username varchar(50) not null,
password varchar(100) not null,
email varchar(50) not null,
grandCode int not null,
registertime datetime
);
drop table butterfly;
create table butterfly (
id int not null primary key,
commonName varchar(100) not null,
scientificName varchar(100) not null,
imgSrc varchar(100) not null,
sumLike int not null default 0
);
insert into butterfly (id, commonName, scientificName, imgSrc, sumLike) values
(0, 'Black-veined White', 'Aporia crataegi', 'images/black-viened-white.jpg', 0),
(1, 'Brimstone', 'Gonepteryx rhamni', 'images/brimstone.jpg', 0),
(2, 'Chequered Skipper', 'Carterocephalus palaemon', 'images/chequered-skipper.jpg', 0),
(3, 'Clouded Yellow', 'Colias croceus', 'images/clouded-white.jpg', 0),
(4, 'Dingy Skipper', 'Erynnis tages', 'images/dingy-skipper-erynnis-tages.jpg', 0),
(5, 'Essex Skipper', 'Thymelicus lineola', 'images/essex-skipper-thymelicus-lineola.jpg', 0),
(6, 'Green-veined White', 'Pieris napi', 'images/green-viened-white.jpg', 0),
(7, 'Grizzled Skipper', 'Pyrgus malvae', 'images/grizzled-skipper.jpg', 0),
(8, 'Large Heath', 'Coenonympha tullia', 'images/large-heath-coenonympha-tullia-ssp-davus.jpg', 0),
(9, 'Large Skipper', 'Ochlodes sylvanus', 'images/large-skipper.jpg', 0),
(10, 'Large White', 'Pieris brassicae', 'images/large-white.jpg', 0),
(11, 'Lulworth Skipper', 'Thymelicus acteon', 'images/lulworth-skipper.jpg', 0),
(12, 'Orange-tip', 'Anthocharis cardamines', 'images/orange-tip-anthocharis-cardamines.jpg', 0),
(13, 'Silver-spotted Skipper', 'Hesperia comma', 'images/silver-spotted-skipper.jpg', 0),
(14, 'Small Skipper', 'Thymelicus sylvestris', 'images/small-skipper.jpg', 0),
(15, 'Small White', 'Pieris rapae', 'images/small-white.jpg', 0),
(16, 'Speckled Wood', 'Parage aegeria', 'images/speckled-wood.jpg', 0),
(17, 'Swallowtail', 'Papilio machaon', 'images/swallowtail-papilio-machaon.jpg', 0),
(18, 'Wall', 'Lasiommata megera', 'images/wall-lasiommata-megera.jpg', 0),
(19, 'Wood White', 'Leptidea sinapis', 'images/wood-white.jpg', 0);