Enviado em 19/02/2017 - 12:55h
Pessoal, bom diaCREATE TABLE clientes
(
id INTEGER DEFAULT nextval('clientes_id_seq'::regclass) PRIMARY KEY NOT NULL,
nome TEXT[] NOT NULL,
endereco TEXT[] NOT NULL,
data_cad DATE NOT NULL,
ativo BOOLEAN,
email VARCHAR(100),
rg VARCHAR(12),
cpf VARCHAR(15),
id_bairro INTEGER[] NOT NULL,
ddd INTEGER[] NOT NULL,
telefone TEXT[] NOT NULL,
telefone_descricao TEXT[],
id_operador INTEGER,
data_nasc DATE
);
CREATE TABLE bairros
(
id INTEGER DEFAULT nextval('bairros_id_seq'::regclass) PRIMARY KEY NOT NULL,
nome VARCHAR(50) NOT NULL,
id_cidade INTEGER NOT NULL,
ativo BOOLEAN NOT NULL
);
SELECT clientes.id as id, clientes.nome as nome,
clientes.endereco as endereco, (bairros.nome) as bairro, clientes.telefone as telefone,
clientes.ativo as ativo FROM clientes
INNER JOIN bairros on (clientes.id_bairro) = bairros.id order by id DESC
Como gerar um podcast a partir de um livro em PDF
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Como Instalar o Microsoft Teams no Linux Ubuntu
Músicas de Andrew Hulshult no DOOM (WAD)
Instalar o Apache, MySQL e PHP no Oracle Linux 8
Bloqueando telemetria no Deepin 23.1
Como converter imagens PNG/JPEG para SVG em linha de comando