Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE ValoresFisicos
- Id: int identity(1,1) NOT NULL;
- temperature: REAL;
- humedad: REAL;
- Velocidad_viento: REAL;
- END;
- ALTER TABLE ValoresFisicos add constraint Idx00 primary key (Id); // crea indice primario
- CREATE TABLE Personas
- Id: int identity(1,1) NOT NULL;
- ValoresFisicosId: int; // este campo hace referencia al id de la tabla valoresfisicos
- Nombre: VARCHAR(50);
- Usuario: VARCHAR(12);
- Contrasena: VARCHAR(12);
- Direccion: VARCHAR(50);
- Telefonon: VARCHAR(12);
- Sexo: BOOLEAN;
- END;
- ALTER TABLE Personas add constraint Idx01 primary key (Id); // crea indice primario
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement