You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
4.2 KiB

-- CRIA SEQUENCIA AUTOMÁTICA PARA O CAMPO ID_REG DA TABELA PREFIXOS
-- DROP SEQUENCE prefixos_teste_id_seq;
CREATE SEQUENCE prefixos_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER TABLE prefixos_id_seq
OWNER TO contacte;
--ALTERA O CAMPO ID_REG PARA RECEBER A SEQUENCIA AUTOMÁTICA
ALTER TABLE prefixos ALTER COLUMN id_reg SET DEFAULT nextval('prefixos_id_seq'::regclass);
-- CRIA TABELA DE ROUTING_ATUALIZA
-- DROP TABLE routing_atualiza;
CREATE TABLE routing_atualiza
(
id_rout serial NOT NULL,
spid integer DEFAULT 0,
oper_numero character varying(40),
prestadora character varying(100),
licensa character varying(10),
numero integer
);
-- INSERE DADOS NA TABELA ROUTING_ATUALIZA
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('0','0','SIMPLES IP','SMP&SME','0');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('314','014','OI(BRASIL TELECOM S/A)','SMP&SME','55314');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('320','015','VIVO S.A.','SMP&SME','55320');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('321','021','CLARO(AMERICEL S.A.)','SMP&SME','55321');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('341','041','TIM CELULAR S.A.','SMP&SME','55341');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('312','012','CTBC CELULAR S.A.','SMP&SME','55312');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('320','023','TELEMIG CELULAR S.A','SMP&SME','55323');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('314','024','AMAZONIA CELULAR S/A','SMP&SME','55324');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('314','031','TNL PCS S.A.','SMP&SME','55331');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('337','037','UNICEL DO BRASIL TELECOMUNICAÇÕES LTDA.','SMP&SME','55337');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('343','043','SERCOMTEL CELULAR S.A.','SMP&SME','55343');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('391','091','FALKLAND TECNOLOGIA EM TELECOMUNICAÇÕES LTDA','SMP&SME','55391');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('393','093','GLOBALSTAR DO BRASIL S/A','SMP&SME','55393');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('377','077','NEXTEL','SMP&SME','55377');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('349','049','OPTIONS COMP ELET LTDA.','SMP&SME','55349');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('341','002','PORTO SEGURO TELECOMUNICAÇÕES S.A.','SMP&SME','55341');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('312','004','TERAPAR PARTICIPAÇÕES LTDA.','SMP&SME','55312');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('199','099','TITANIA','SMP&SME','55199');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('201','098','JBC NORTE - link E1','SMP&SME','55201');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('202','097','JBC SUL - link E1','SMP&SME','55202');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('203','096','JBC BLUMENAU - LINK E1','SMP&SME','55203');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('325','025','GVT - Global Village Telecom','SMP&SME','55225');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('320','015','TELEFÔNICA-TELESP','SMP&SME','55320');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('341','041','SERMATEL COM. E SERVIÇOS DE TELECOMUNICAÇÕES','SMP&SME','55320');
insert into routing_atualiza(spid,oper_numero,prestadora,licensa,numero) values ('312','012','ALGAR CELULAR S/A','SMP&SME','55320');