· 9 years ago · Nov 14, 2016, 02:42 PM
1drop database if exists auftrag;
2create database auftrag;
3use auftrag;
4drop table if exists artikel;
5create table artikel(
6artikelnummer int(4) not NULL auto_increment,
7artikelbeschreibung char(50),
8menge int(255) not NULL,
9preis dec(6,2),
10bestand int(255),
11PRIMARY KEY(artikelnummer));
12
13INSERT artikel VALUES(1, 'Handschuhe Schwarz', 1, 9.99, 10);
14INSERT artikel VALUES(2, 'Schuhe Schwarz', 1, 29.99, 10);
15INSERT artikel VALUES(3, 'Schuhe Weiss', 1, 29.99, 55);
16INSERT artikel VALUES(4, 'Regenjacke', 1, 39.99, 41);
17INSERT artikel VALUES(5, 'Mantel', 1, 69.99, 54);
18INSERT artikel VALUES(6, 'Jogginghose', 1, 19.99, 12);
19INSERT artikel VALUES(7, 'Jeans', 1, 29.99, 43);
20INSERT artikel VALUES(8, 'T-Shirt', 1, 14.99, 16);
21INSERT artikel VALUES(9, 'Pullover', 1, 25.99, 64);
22INSERT artikel VALUES(10, 'Schaal Schwarz', 1, 9.99, 95);