-
Notifications
You must be signed in to change notification settings - Fork 0
/
guido.sql
48 lines (41 loc) · 1.79 KB
/
guido.sql
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
create database if not exists guido;
use guido;
create table if not exists livros(
isbn int not null ,
titulo varchar(100) not null,
autor varchar(30) not null,
editora varchar(75),
preco double,
genero varchar(20),
primary key (isbn)
) DEFAUlT CHARSET = utf8;
CREATE TABLE IF NOT EXISTS tbl_images (
id int NOT NULL AUTO_INCREMENT,
name mediumblob NOT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*
insert into livros(isbn,titulo,autor,sobrenome,editora,preco)
Values('978852096','Os Filhos do Imperador','Claire','Messud','Nova Frontera','35,00');
insert into livros(isbn,titulo,autor,sobrenome,editora,preco)
Values ('9788520922521','Sherlock Holmes Vol.4','Arthur C.','Doyle','Harper Collins','39,90'),
('9788579801556','Insurgente','Veronica','Roth','Rocco','35,90'),
('9788565765121','A Elite','Kiera','Cass','Seguinte','30,90'),
('978857329828','Poemas Gregório de Matos ','Gregório','Matos','Martin Claret','35.00'),
('9788579801860','Convirgente','Veronica ','Roth','Rocco','30,90');
insert into livros(isbn,titulo,autor,sobrenome,editora,preco)
Values ('9788520922538','Sherlock Holmes vol.1','Artur C.','Doye','Harper Collins','39,90'),
('9788520922514','Sherlock Holmes vol.3','Artur C.','Dolye','Harper Collins','39,90'),
('9788565765015','A seleção','Kiera','Cass','Seguinte','40,00'),
('9788520922507','Sherlock Holmes vol.2','Artur C.','Dolye','Harper Collins','39,90'),
('9788535914061','Capitães da Areia ','Jorge','Amado','Companhia de Bolso ','25,50');
*/
create table msg(
id int primary key auto_increment,
nome varchar(150) not null,
email varchar(100) not null,
mensagem varchar(1500) not null
)DEFAUlT CHARSET = utf8;
select * from msg;
select * from livros;
drop database guido;