diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/t_pizza.sql | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/t_pizza.sql')
| -rw-r--r-- | Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/t_pizza.sql | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/t_pizza.sql b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/t_pizza.sql new file mode 100644 index 0000000..54b33aa --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/t_pizza.sql @@ -0,0 +1,51 @@ +-- phpMyAdmin SQL Dump +-- version 2.7.0-pl1 +-- http://www.phpmyadmin.net +-- +-- Host: localhost +-- Generation Time: Jun 12, 2006 at 12:23 PM +-- Server version: 5.0.18 +-- PHP Version: 5.1.1 +-- +-- Database: `pizza` +-- + +-- -------------------------------------------------------- + +drop table if exists `t_bestellung`; +drop table if exists `t_pizza`; + +-- +-- Table structure for table `t_pizza` +-- + +CREATE TABLE `t_pizza` ( + `PizNr` int(11) NOT NULL, + `Bild` varchar(100) collate latin1_german1_ci NOT NULL, + `Bezeichnung` varchar(100) collate latin1_german1_ci NOT NULL, + `Preis` float NOT NULL, + PRIMARY KEY (`PizNr`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci; + +-- +-- Dumping data for table `t_pizza` +-- + +INSERT INTO `t_pizza` (`PizNr`, `Bild`, `Bezeichnung`, `Preis`) VALUES (1, 'pizza.gif', 'Salami', 4.99); +INSERT INTO `t_pizza` (`PizNr`, `Bild`, `Bezeichnung`, `Preis`) VALUES (2, 'pizza.gif', 'Speciale', 5.49); +INSERT INTO `t_pizza` (`PizNr`, `Bild`, `Bezeichnung`, `Preis`) VALUES (3, 'pizza.gif', 'Tonno', 5.49); +INSERT INTO `t_pizza` (`PizNr`, `Bild`, `Bezeichnung`, `Preis`) VALUES (4, 'pizza.gif', 'Hawaii', 5.99); + +CREATE TABLE `t_bestellung` ( + `AuftragNr` int(11) NOT NULL AUTO_INCREMENT, + `PizNr` int(11) NOT NULL, + `Zeitpunkt` varchar(100), + `Lieferadresse` varchar(100) NOT NULL, + `SessionID` varchar(100) NOT NULL, + `Zustand` varchar(10) NOT NULL, + PRIMARY KEY (`AuftragNr`), + FOREIGN KEY (`PizNr`) REFERENCES t_pizza(`PizNr`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci; + +-- + |
