Module
Contents
Index 🔎︎

# Relaciones

Esti comandu abre la ventana Diseñu de relaciones, que dexa definir relaciones ente les diverses tables de la base de datos.

Equí pue enllazar les tables de la base de datos actual por aciu los sos campos de datos comunes. Faiga clic nel iconu Rellación nueva pa crear les relaciones, o utilice'l mur p'abasnar y asitiar.

P'aportar a esti comandu...

In a database file window, choose Tools - Relationships.

Esta función namái ta disponible si utilízase una base de datos relacional.

When you choose Tools - Relationships, a window opens in which all the existing relationships between the tables of the current database are shown. If no relationships have been defined, or if you want to relate other tables of the database to each other, then click on the Add Tables icon. The Add Tables dialog opens in which you can select the tables with which to create a relation.

Amestar tabla...

Si ta abierta la ventana Diseñu de relaciones, nun puen modificar les tables escoyíes, nin siquier en mou de diseñu de tabla. Ye una forma de garantizar que les tables nun se modificar mientres l'establecimientu de relaciones.

The selected tables are shown in the top area of the relation design view. You can close a table window through the context menu or with the Delete key.

### Mover tables y modificar el so tamañu

Les tables y el so tamañu puen definise a voluntá. Pa mover una tabla calcar col mur'l marxe cimeru y llévase a la posición deseyada. P'aumentar o menguar el tamañu de presentación, arrastre'l borde escontra una de les esquines.

## Primary key and foreign keys

If you want to define a relation among the various tables, you should enter a primary key that uniquely identifies a data field of an existing table. You can refer to the primary key from other tables to access the data of this table. All data fields referring to this primary key will be identified as a foreign key.

Los campos de datos a los que s'asignó una llave primaria identificar na ventana de la tabla col símbolu d'una llave.

## Definir relaciones

All existing relations are shown in the relations windows by a line that connects the primary and foreign key fields. You can add a relation by using drag-and-drop to drop the field of one table onto the field of the other table. A relation is removed again by selecting it and pressing the Delete key.

Otra posibilidá ye calcar nel símbolu Rellación nueva asitiáu na parte cimera de la ventana y definir la rellación ente los dos tables nel diálogu Relaciones.

Nueva rellación...

If you use LibreOffice as the front-end for a relational database, the creation and deletion of relationships is not placed in an intermediate memory by LibreOffice, but is forwarded directly to the database.

Si efeutúa una doble pulsación nuna de les llinies de conexón va poder asignar propiedaes específiques a la rellación. Ábrese'l diálogu Relaciones.