Postagens

Mostrando postagens de maio, 2018

googl

https://drive.google.com/file/d/1lXfSD7zY5KJA45fvZQhaL3XL4sofWY6D/view?usp=sharing

Lembrete insert

### ESTADOS E CAPITAIS DO BRASIL https://www.estadosecapitaisdobrasil.com/ ### CIDADES https://pt.wiktionary.org/wiki/Ap%C3%AAndice:Gent%C3%ADlicos_e_top%C3%B3nimos_em_portugu%C3%AAs/Brasil#Municípios #------------------------------------------------------------------------------- ### ENTIDADES |tb_estado| 1------* |tb_cidade| ### TB_ESTADO [1] create table tb_estado(     id_estado int(11) not null auto_increment primary key,     estado varchar(50),     sigla char(2),     regiao varchar(15) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ### TB_CIDADE [*] create table tb_cidade(     id_cidade int(11) not null auto_increment primary key,     cidade varchar(150),     capital enum('m','c') default 'm',  -- m:Municipio / c:Capital     cid_id_estado int(11) not null,     foreign key (cid_id_estado) references tb_estado (id_estado) ) ENGINE=InnoDB DEFAU...

aula banco01111

tb_estado 1--------* | tb_cidade| ### TB_ESTADO [1] create table tb_estado( id_estado int(11) not null auto_increment primary key, estado varchar(50), sigla char(2), regiao varchar(15) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; tb_ cidade create table tb_cidade( id_cidade int(11) not null auto_increment primary key, cidade varchar(150), capital enum('m','c') default 'm', cid_id_estado int(11) not null, foreign key (cid_id_estado) references tb_estado (id_estado) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;