geo.provincias
All provincias in Spain. Primary keys are not autogenerated, since they have a unique code assigned by INE (CPRO).
Columns
| Name | Data Type | Is Nullable | Description |
|---|---|---|---|
| provincia_id | int | NO | primary key |
| nombre | varchar | NO | unique |
| comunidad_autonoma_id | int | NO | references geo.comunidades_autonomas |
Table definition
CREATE TABLE
geo.provincias (
provincia_id int PRIMARY KEY,
nombre varchar UNIQUE NOT NULL,
comunidad_autonoma_id int NOT NULL REFERENCES geo.comunidades_autonomas (comunidad_autonoma_id)
);
Source
Data extracted from Instituto Nacional de Estadística (INE) Consulted on 3 June 2025.