Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DATABASE: `aereoporti`
- --
- -- --------------------------------------------------------
- --
- -- Struttura della tabella `aereo`
- --
- CREATE TABLE `aereo` (
- `tipoaereo` CHAR(255) NOT NULL,
- `numeropassegerei` CHAR(255) NOT NULL,
- `quotamerci` INT(10) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- --------------------------------------------------------
- --
- -- Struttura della tabella `aereopoto`
- --
- CREATE TABLE `aereopoto` (
- `città` CHAR(255) NOT NULL,
- `nazione` CHAR(255) NOT NULL,
- `numeroospite` INT(10) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -- --------------------------------------------------------
- --
- -- Struttura della tabella `volo`
- --
- CREATE TABLE `volo` (
- `idvolo` INT(55) NOT NULL,
- `giornosettimana` CHAR(255) NOT NULL,
- `cittapartenza` CHAR(255) NOT NULL,
- `orariopartenza` CHAR(255) NOT NULL,
- `cittaarrivo` CHAR(255) NOT NULL,
- `orarioarrivo` CHAR(255) NOT NULL,
- `tipoaereo` CHAR(255) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- --
- -- Indici per le tabelle scaricate
- --
- --
- -- Indici per le tabelle `aereo`
- --
- ALTER TABLE `aereo`
- ADD PRIMARY KEY (`tipoaereo`);
- --
- -- Indici per le tabelle `aereopoto`
- --
- ALTER TABLE `aereopoto`
- ADD PRIMARY KEY (`città`);
- --
- -- Indici per le tabelle `volo`
- --
- ALTER TABLE `volo`
- ADD PRIMARY KEY (`idvolo`);
- COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement