Created
January 8, 2017 20:34
-
-
Save renatogroffe/d1692e3a1358040689035540166c343e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE ExemploPaises; | |
GO | |
USE ExemploPaises; | |
GO | |
CREATE TABLE dbo.Paises( | |
Sigla char(3) NOT NULL, | |
NomePais varchar(50) NOT NULL, | |
CodigoTelefonico varchar(4) NOT NULL, | |
CONSTRAINT PK_Paises PRIMARY KEY (Sigla) | |
); | |
GO | |
INSERT INTO dbo.Paises | |
(Sigla | |
,NomePais | |
,CodigoTelefonico) | |
VALUES | |
('EUA' | |
,'Estados Unidos da América' | |
,'+1'); | |
GO | |
INSERT INTO dbo.Paises | |
(Sigla | |
,NomePais | |
,CodigoTelefonico) | |
VALUES | |
('GER' | |
,'Alemanha' | |
,'+49'); | |
GO | |
INSERT INTO dbo.Paises | |
(Sigla | |
,NomePais | |
,CodigoTelefonico) | |
VALUES | |
('BRA' | |
,'Brasil' | |
,'+55'); | |
GO | |
INSERT INTO dbo.Paises | |
(Sigla | |
,NomePais | |
,CodigoTelefonico) | |
VALUES | |
('UAE' | |
,'Emirados Árabes Unidos' | |
,'+971'); | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment