Skip to content

Instantly share code, notes, and snippets.

@renatogroffe
Created January 8, 2017 20:34
Show Gist options
  • Save renatogroffe/d1692e3a1358040689035540166c343e to your computer and use it in GitHub Desktop.
Save renatogroffe/d1692e3a1358040689035540166c343e to your computer and use it in GitHub Desktop.
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