Skip to content

Instantly share code, notes, and snippets.

View danarrib's full-sized avatar

Daniel Ribeiro danarrib

  • São Paulo, Brazil
View GitHub Profile
@danarrib
danarrib / test_cpf_storage_bigint_or_varchar.sql
Last active May 16, 2024 18:04
Test CPF Storage (BigInt vs Varchar) on Postgres
-- Cria duas tabelas: stringcpf e bigintcpf
drop table if exists stringcpf;
create table if not exists stringcpf (
cpf varchar(11) not null primary key
);
drop table if exists bigintcpf;
create table bigintcpf (
cpf bigint not null primary key
);