Notes
Suporte
Content of the notes (1)
Page 1
Tabela = clientes
id nome cidade idade telefone país
1 Nathalie Caroline Brasília 23 12345678 Brasil
2 Patrick Nascimento São Paulo 24 78945612 Brasil
3 Mirelly Vitória Rio de Janeiro 22 74185296 Brasil
4 Pedro Henrique Goiânia 21 96385214 Brasil
5 Jordana Paula Goiânia 20 45678912 Brasil
* = Tudo
From = A partir de
select * from clientes;
select cidade from clientes;
idade
nome
id
telefone
país
select cidade, nome from clientes;
select distinct cidade from clientes;
select distinct cidade, nome from clientes;
select * from clientes where id = 2
select * from clientes where nome = "Pedro Henrique";
select * from clientes where idade != 22;
=
>
<
=>
=<
between
like
in
select * from clientes where país = "Brasil" and cidade = "Rio de Janeiro";
select * from clientes where idade > 21 and país = "Brasil";
select * from clientes where telefone = "12345678" or cidade = "Goiânia";
select * from clientes where idade < 23 or idade = > 20;
select * from clientes order by nome;
select * from clientes order by nome, país;
select * from clientes order by cidade asc;
select * from clientes order by id desc;
select * from clientes order by nome asc, id desc;
insert into clientes (nome, cidade, idade, telefone, país) values ("Giovanna", "Trindade", 19, "25896314", "Brasil");
update clientes set nome = "Nathalie Caroline", id = 2 where nome = "Nathalie Nascimento";
update clientes set nome = "Nathalie Caroline", cidade = "Brasília" where nome = "Nathalie Nascimento", cidade = São Paulo;
delete from clientes where nome = "Jordana Paula" and id = 5;
select * from users where userID = 105 or 1 = 1;
Information
- Description
- Note on Suporte, created by Nathalie Caroline on 11/10/2016.
- Created by
- Nathalie Caroline
- Views
- 0
- Rating