hilfdirselbst.ch
Facebook Twitter gamper-media
Swisstiger
Beiträge: 7
3. Jan 2005, 02:01
Beitrag #1 von 5
Bewertung:
(735 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen

Wieso geht das nicht oder wo ist der Fehler ?


Hi alle


wollte gerade das in der mysql Tabelle einfügen.


Create table Drivers (
IDdriver Mediumint(8) UNSIGNED NOT NULL DEFAULT "0" AUTO_INCREMENT,
IDcar Mediumint UNSIGNED DEFAULT NULL,
IDcountry Smallint UNSIGNED DEFAULT NULL,
IDcarClass Mediumint UNSIGNED NOT NULL,
IDteam Mediumint UNSIGNED DEFAULT NULL,
FName Varchar(30),
LName Varchar(30),
Nick Varchar(15),
GTRnick Varchar(30) NOT NULL,
Passwd Varchar(15),
City Varchar(30),
email Varchar(50),
www Varchar(50),
TeamLeader Tinyint UNSIGNED DEFAULT 0,
BirthYear Smallint(6),
SkinDate Datetime,
SkinPath Varchar(100),
Accepted Tinyint(1),
Arbiter Tinyint(4),
Division Varchar(50),
DivShort Varchar(10),
MailNotify Tinyint(4) UNSIGNED DEFAULT 1,
HideEmail Tinyint UNSIGNED DEFAULT 0,
Demo Tinyint NOT NULL DEFAULT 0,
Com_GG Varchar(15) DEFAULT NULL,
Com_ICQ Varchar(15) DEFAULT NULL,
Com_AOL Varchar(15) DEFAULT NULL,
Com_Tlen Varchar(15) DEFAULT NULL,
Com_MSN Varchar(15) DEFAULT NULL,
Com_Yahoo Varchar(50) DEFAULT NULL,
UNIQUE (Nick),
UNIQUE (GTRnick),
Primary Key (IDdriver)) TYPE = InnoDB
ROW_FORMAT = Dynamic;



Nun gibt es aber eine Fehlermeldung, alles andere geht nur diese Tabelle will nicht.


Fehlermeldung:

#1067 - Invalid default value for 'IDdriver'



Nur wo soll da ein Fehler sein ?


Gruss Tiger Top
 
X
Ollli
Beiträge: 458
3. Jan 2005, 02:38
Beitrag #2 von 5
Beitrag ID: #133510
Bewertung:
(735 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen

Wieso geht das nicht oder wo ist der Fehler ?


Hi!

Ich weiß nicht genau obs hilft, aber ersetze die "IDdriver"-Zeile durch folgende:
IDdriver Mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT,

Ollli
-----------
ja, es stimmt - es sind wirklich 3 "l" im Namen und ich bestehe auf jedes einzelne ;-)
als Antwort auf: [#133509] Top
 
Swisstiger
Beiträge: 7
3. Jan 2005, 03:04
Beitrag #3 von 5
Beitrag ID: #133512
Bewertung:
(735 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen

Wieso geht das nicht oder wo ist der Fehler ?


Hallo


Danke das hat mal geholfen, aber das was dann weiter unten kommt und eigentlich dann in die Tabelle Drivers sollte geht wieder nicht.


INSERT INTO `drivers` (`IDdriver`, `IDcar`, `FName`, `LName`, `Nick`, `GTRnick`, `Passwd`, `City`, `email`, `www`, `BirthYear`, `SkinDate`, `SkinPath`, `Accepted`, `Arbiter`, `Division`, `DivShort`, `MailNotify`, `HideEmail`, `IDcountry`, `IDcarClass`, `Demo`, `IDteam`, `TeamLeader`, `Com_GG`, `Com_AOL`, `Com_MSN`, `Com_ICQ`, `Com_Tlen`, `Com_Yahoo`) VALUES (28, 7, 'admin', 'admin', 'admin', 'admin', 'adpexzg3FUZAk', '', 'admin', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, 1, 1, 1, 1, 0, NULL, 0, '', '', '', '', '', '');
INSERT INTO `drivers` (`IDdriver`, `IDcar`, `FName`, `LName`, `Nick`, `Passwd`, `City`, `email`, `www`, `BirthYear`, `SkinDate`, `SkinPath`, `Accepted`, `Arbiter`, `Division`, `DivShort`, `MailNotify`, `IDcountry`, `IDcarClass`, `Demo`) VALUES (2, 1, 'demo', 'demo', 'demo', 'devFxxVFZsuos', '', 'demo', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, 1);

INSERT INTO `tracks` VALUES (1, 'Anderstorp');
INSERT INTO `tracks` VALUES (2, 'Barcelona');
INSERT INTO `tracks` VALUES (3, 'Brno');
INSERT INTO `tracks` VALUES (4, 'Donington');
INSERT INTO `tracks` VALUES (5, 'Enna');
INSERT INTO `tracks` VALUES (6, 'Estoril');
INSERT INTO `tracks` VALUES (7, 'Magny-Cours');
INSERT INTO `tracks` VALUES (8, 'Monza');
INSERT INTO `tracks` VALUES (9, 'Oschersleben');
INSERT INTO `tracks` VALUES (10, 'Spa');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (1, 1, 'Ferrari 550 Maranello', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (2, 1, 'Ferrari 575 GTC', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (3, 1, 'Chrysler Viper GTS-R', 'DaimlerChrysler');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (4, 1, 'Lister Storm', 'Lister Cars Ltd');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (5, 1, 'Lamborghini Murcielago R-GT', 'Automobili Lamborghini');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (6, 1, 'Saleen S7-R', 'Saleen Inc');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (7, 1, 'Chevrolet Corvette C5-R', 'General Motors');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (8, 1, 'Porsche 993 GT2', 'porsche AG');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (9, 2, 'Ferrari 360 Modena', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (10, 2, 'Porsche 996 GT3-RS', 'porsche AG');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (11, 2, 'Morgan Aero 8', 'Morgan Motor Company');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (12, 2, 'Bmw Z3 M', 'BMW Group');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (13, 2, 'Lotus Elise', 'Lotus Cars Ltd');
INSERT INTO `CarClass` VALUES (1, 'GT');
INSERT INTO `CarClass` VALUES (2, 'nGT');
INSERT INTO `country` VALUES (1, 'Afghanistan');
INSERT INTO `country` VALUES (2, 'Albania');
INSERT INTO `country` VALUES (3, 'Algeria');
INSERT INTO `country` VALUES (4, 'Andorra');
INSERT INTO `country` VALUES (5, 'Angola');
INSERT INTO `country` VALUES (6, 'Antigua And Barbuda');
INSERT INTO `country` VALUES (7, 'Argentina');
INSERT INTO `country` VALUES (8, 'Armenia');
INSERT INTO `country` VALUES (9, 'Australia');
INSERT INTO `country` VALUES (10, 'Austria');
INSERT INTO `country` VALUES (11, 'Azerbaijan');
INSERT INTO `country` VALUES (12, 'Bahamas');
INSERT INTO `country` VALUES (13, 'Bahrain');
INSERT INTO `country` VALUES (14, 'Bangladesh');
INSERT INTO `country` VALUES (15, 'Barbados');
INSERT INTO `country` VALUES (16, 'Belarus');
INSERT INTO `country` VALUES (17, 'Belgium');
INSERT INTO `country` VALUES (18, 'Belize');
INSERT INTO `country` VALUES (19, 'Benin');
INSERT INTO `country` VALUES (20, 'Bhutan');
INSERT INTO `country` VALUES (21, 'Bolivia');
INSERT INTO `country` VALUES (22, 'Bosnia Herzegovina');
INSERT INTO `country` VALUES (23, 'Botswana');
INSERT INTO `country` VALUES (24, 'Brazil');
INSERT INTO `country` VALUES (25, 'Brunei');
INSERT INTO `country` VALUES (26, 'Bulgaria');
INSERT INTO `country` VALUES (27, 'Burkinafaso');
INSERT INTO `country` VALUES (28, 'Burma');
INSERT INTO `country` VALUES (29, 'Burundi');
INSERT INTO `country` VALUES (30, 'Cambodia');
INSERT INTO `country` VALUES (31, 'Cameroon');
INSERT INTO `country` VALUES (32, 'Canada');
INSERT INTO `country` VALUES (33, 'Central African Rep');
INSERT INTO `country` VALUES (34, 'Chad');
INSERT INTO `country` VALUES (35, 'Chile');
INSERT INTO `country` VALUES (36, 'China');
INSERT INTO `country` VALUES (37, 'Columbia');
INSERT INTO `country` VALUES (38, 'Comoros');
INSERT INTO `country` VALUES (39, 'Congo');
INSERT INTO `country` VALUES (40, 'Costarica');
INSERT INTO `country` VALUES (41, 'Croatia');
INSERT INTO `country` VALUES (42, 'Cuba');
INSERT INTO `country` VALUES (43, 'Cyprus');
INSERT INTO `country` VALUES (44, 'Czech Republic');
INSERT INTO `country` VALUES (45, 'Demrepcongo');
INSERT INTO `country` VALUES (46, 'Denmark');
INSERT INTO `country` VALUES (47, 'Djibouti');
INSERT INTO `country` VALUES (48, 'Dominica');
INSERT INTO `country` VALUES (49, 'Dominican Rep');
INSERT INTO `country` VALUES (50, 'Ecuador');
INSERT INTO `country` VALUES (51, 'Egypt');
INSERT INTO `country` VALUES (52, 'Elsalvador');
INSERT INTO `country` VALUES (53, 'Eq Guinea');
INSERT INTO `country` VALUES (54, 'Eritrea');
INSERT INTO `country` VALUES (55, 'Estonia');
INSERT INTO `country` VALUES (56, 'Ethiopia');
INSERT INTO `country` VALUES (57, 'Fiji');
INSERT INTO `country` VALUES (58, 'Finland');
INSERT INTO `country` VALUES (59, 'France');
INSERT INTO `country` VALUES (60, 'Gabon');
INSERT INTO `country` VALUES (61, 'Gambia');
INSERT INTO `country` VALUES (62, 'Georgia');
INSERT INTO `country` VALUES (63, 'Germany');
INSERT INTO `country` VALUES (64, 'Ghana');
INSERT INTO `country` VALUES (65, 'Greece');
INSERT INTO `country` VALUES (66, 'Grenada');
INSERT INTO `country` VALUES (67, 'Grenadines');
INSERT INTO `country` VALUES (68, 'Guatemala');
INSERT INTO `country` VALUES (69, 'Guinea');
INSERT INTO `country` VALUES (70, 'Guineabissau');
INSERT INTO `country` VALUES (71, 'Guyana');
INSERT INTO `country` VALUES (72, 'Haiti');
INSERT INTO `country` VALUES (73, 'Honduras');
INSERT INTO `country` VALUES (74, 'Hong Kong');
INSERT INTO `country` VALUES (75, 'Hungary');
INSERT INTO `country` VALUES (76, 'Iceland');
INSERT INTO `country` VALUES (77, 'India');
INSERT INTO `country` VALUES (78, 'Indonesia');
INSERT INTO `country` VALUES (79, 'Iran');
INSERT INTO `country` VALUES (80, 'Iraq');
INSERT INTO `country` VALUES (81, 'Ireland');
INSERT INTO `country` VALUES (82, 'Israel');
INSERT INTO `country` VALUES (83, 'Italy');
INSERT INTO `country` VALUES (84, 'Ivory Coast');
INSERT INTO `country` VALUES (85, 'Jamaica');
INSERT INTO `country` VALUES (86, 'Japan');
INSERT INTO `country` VALUES (87, 'Jordan');
INSERT INTO `country` VALUES (88, 'Kazakhstan');
INSERT INTO `country` VALUES (89, 'Kenya');
INSERT INTO `country` VALUES (90, 'Kiribati');
INSERT INTO `country` VALUES (91, 'Kuwait');
INSERT INTO `country` VALUES (92, 'Kyrgyzstan');
INSERT INTO `country` VALUES (93, 'Laos');
INSERT INTO `country` VALUES (94, 'Latvia');
INSERT INTO `country` VALUES (95, 'Lebanon');
INSERT INTO `country` VALUES (96, 'Liberia');
INSERT INTO `country` VALUES (97, 'Libya');
INSERT INTO `country` VALUES (98, 'Liechtenstein');
INSERT INTO `country` VALUES (99, 'Lithuania');
INSERT INTO `country` VALUES (100, 'Luxembourg');
INSERT INTO `country` VALUES (101, 'Macadonia');
INSERT INTO `country` VALUES (102, 'Macau');
INSERT INTO `country` VALUES (103, 'Madagascar');
INSERT INTO `country` VALUES (104, 'Malawi');
INSERT INTO `country` VALUES (105, 'Malaysia');
INSERT INTO `country` VALUES (106, 'Maldives');
INSERT INTO `country` VALUES (107, 'Mali');
INSERT INTO `country` VALUES (108, 'Malta');
INSERT INTO `country` VALUES (109, 'Mauritania');
INSERT INTO `country` VALUES (110, 'Mauritius');
INSERT INTO `country` VALUES (111, 'Mexico');
INSERT INTO `country` VALUES (112, 'Micronesia');
INSERT INTO `country` VALUES (113, 'Moldova');
INSERT INTO `country` VALUES (114, 'Monaco');
INSERT INTO `country` VALUES (115, 'Mongolia');
INSERT INTO `country` VALUES (116, 'Morocco');
INSERT INTO `country` VALUES (117, 'Mozambique');
INSERT INTO `country` VALUES (118, 'Namibia');
INSERT INTO `country` VALUES (119, 'Nauru');
INSERT INTO `country` VALUES (120, 'Nepal');
INSERT INTO `country` VALUES (121, 'Neth Antilles');
INSERT INTO `country` VALUES (122, 'Netherlands');
INSERT INTO `country` VALUES (123, 'New Zealand');
INSERT INTO `country` VALUES (124, 'Nicaragua');
INSERT INTO `country` VALUES (125, 'Niger');
INSERT INTO `country` VALUES (126, 'Nigeria');
INSERT INTO `country` VALUES (127, 'North Korea');
INSERT INTO `country` VALUES (128, 'Norway');
INSERT INTO `country` VALUES (129, 'Oman');
INSERT INTO `country` VALUES (130, 'Pakistan');
INSERT INTO `country` VALUES (131, 'Panama');
INSERT INTO `country` VALUES (132, 'Papua Newguinea');
INSERT INTO `country` VALUES (133, 'Paraguay');
INSERT INTO `country` VALUES (134, 'Peru');
INSERT INTO `country` VALUES (135, 'Philippines');
INSERT INTO `country` VALUES (136, 'Poland');
INSERT INTO `country` VALUES (137, 'Portugal');
INSERT INTO `country` VALUES (138, 'Puertorico');
INSERT INTO `country` VALUES (139, 'Qatar');
INSERT INTO `country` VALUES (140, 'Romania');
INSERT INTO `country` VALUES (141, 'Russia');
INSERT INTO `country` VALUES (142, 'Rwanda');
INSERT INTO `country` VALUES (143, 'Sao Tome');
INSERT INTO `country` VALUES (144, 'Saudiarabia');
INSERT INTO `country` VALUES (145, 'Sealand');
INSERT INTO `country` VALUES (146, 'Senegal');
INSERT INTO `country` VALUES (147, 'Serbia');
INSERT INTO `country` VALUES (148, 'Seychelles');
INSERT INTO `country` VALUES (149, 'Sierraleone');
INSERT INTO `country` VALUES (150, 'Singapore');
INSERT INTO `country` VALUES (151, 'Slovakia');
INSERT INTO `country` VALUES (152, 'Slovenia');
INSERT INTO `country` VALUES (153, 'Solomon Islands');
INSERT INTO `country` VALUES (154, 'Somalia');
INSERT INTO `country` VALUES (155, 'South Africa');
INSERT INTO `country` VALUES (156, 'South Korea');
INSERT INTO `country` VALUES (157, 'South Korea');
INSERT INTO `country` VALUES (158, 'Spain');
INSERT INTO `country` VALUES (159, 'Srilanka');
INSERT INTO `country` VALUES (160, 'Stkitts Nevis');
INSERT INTO `country` VALUES (161, 'Stlucia');
INSERT INTO `country` VALUES (162, 'Sudan');
INSERT INTO `country` VALUES (163, 'Suriname');
INSERT INTO `country` VALUES (164, 'Sweden');
INSERT INTO `country` VALUES (165, 'Switzerland');
INSERT INTO `country` VALUES (166, 'Syria');
INSERT INTO `country` VALUES (167, 'Taiwan');
INSERT INTO `country` VALUES (168, 'Tajikistan');
INSERT INTO `country` VALUES (169, 'Tanzania');
INSERT INTO `country` VALUES (170, 'Thailand');
INSERT INTO `country` VALUES (171, 'Togo');
INSERT INTO `country` VALUES (172, 'Tonga');
INSERT INTO `country` VALUES (173, 'Trinidad And Tobago');
INSERT INTO `country` VALUES (174, 'Tunisia');
INSERT INTO `country` VALUES (175, 'Turkey');
INSERT INTO `country` VALUES (176, 'Turkmenistan');
INSERT INTO `country` VALUES (177, 'Tuvala');
INSERT INTO `country` VALUES (178, 'Uae');
INSERT INTO `country` VALUES (179, 'Uganda');
INSERT INTO `country` VALUES (180, 'Uk');
INSERT INTO `country` VALUES (181, 'Ukraine');
INSERT INTO `country` VALUES (182, 'United Nations');
INSERT INTO `country` VALUES (183, 'Uruguay');
INSERT INTO `country` VALUES (184, 'Usa');
INSERT INTO `country` VALUES (185, 'Ussr');
INSERT INTO `country` VALUES (186, 'Uzbekistan');
INSERT INTO `country` VALUES (187, 'Vanuatu');
INSERT INTO `country` VALUES (188, 'Venezuela');
INSERT INTO `country` VALUES (189, 'Vietnam');
INSERT INTO `country` VALUES (190, 'Western Samoa');
INSERT INTO `country` VALUES (191, 'Yemen');
INSERT INTO `country` VALUES (192, 'Yugoslavia');
INSERT INTO `country` VALUES (193, 'Zaire');
INSERT INTO `country` VALUES (194, 'Zambia');
INSERT INTO `country` VALUES (195, 'Zimbabwe');






Hier mal das sql als zum zum runterladen, dann einfach umbennenen in gtr.sql


http://www.swissvirtualtigers.ch/gtr.zip




Tiger
als Antwort auf: [#133509] Top
 
Swisstiger
Beiträge: 7
3. Jan 2005, 03:12
Beitrag #4 von 5
Beitrag ID: #133513
Bewertung:
(735 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen

Wieso geht das nicht oder wo ist der Fehler ?


Ok so geht es.

Create table Drivers (
IDdriver Mediumint(8)( UNSIGNED NOT NULL AUTO_INCREMENT,
IDcar Mediumint UNSIGNED DEFAULT NULL,
IDcountry Smallint UNSIGNED DEFAULT NULL,
IDcarClass Mediumint UNSIGNED NOT NULL,
IDteam Mediumint UNSIGNED DEFAULT NULL,
FName Varchar(30),
LName Varchar(30),
Nick Varchar(15),
GTRnick Varchar(30) NOT NULL,
Passwd Varchar(15),
City Varchar(30),
email Varchar(50),
www Varchar(50),
TeamLeader Tinyint UNSIGNED DEFAULT 0,
BirthYear Smallint(6),
SkinDate Datetime,
SkinPath Varchar(100),
Accepted Tinyint(1),
Arbiter Tinyint(4),
Division Varchar(50),
DivShort Varchar(10),
MailNotify Tinyint(4) UNSIGNED DEFAULT 1,
HideEmail Tinyint UNSIGNED DEFAULT 0,
Demo Tinyint NOT NULL DEFAULT 0,
Com_GG Varchar(15) DEFAULT NULL,
Com_ICQ Varchar(15) DEFAULT NULL,
Com_AOL Varchar(15) DEFAULT NULL,
Com_Tlen Varchar(15) DEFAULT NULL,
Com_MSN Varchar(15) DEFAULT NULL,
Com_Yahoo Varchar(50) DEFAULT NULL,
UNIQUE (Nick),
UNIQUE (GTRnick),
Primary Key (IDdriver)) TYPE = InnoDB
ROW_FORMAT = Dynamic;

----------------------------------------------------------------------------------------------


Dafür geht dan das weiter unten nicht mehr was er dann in die Tabelle schreiben soll, ich frage mich was derjenige der das geschrieben hat studiert hat ???



INSERT INTO `drivers` (`IDdriver`, `IDcar`, `FName`, `LName`, `Nick`, `GTRnick`, `Passwd`, `City`, `email`, `www`, `BirthYear`, `SkinDate`, `SkinPath`, `Accepted`, `Arbiter`, `Division`, `DivShort`, `MailNotify`, `HideEmail`, `IDcountry`, `IDcarClass`, `Demo`, `IDteam`, `TeamLeader`, `Com_GG`, `Com_AOL`, `Com_MSN`, `Com_ICQ`, `Com_Tlen`, `Com_Yahoo`) VALUES (28, 7, 'admin', 'admin', 'admin', 'admin', 'adpexzg3FUZAk', '', 'admin', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, 1, 1, 1, 1, 0, NULL, 0, '', '', '', '', '', '');
INSERT INTO `drivers` (`IDdriver`, `IDcar`, `FName`, `LName`, `Nick`, `Passwd`, `City`, `email`, `www`, `BirthYear`, `SkinDate`, `SkinPath`, `Accepted`, `Arbiter`, `Division`, `DivShort`, `MailNotify`, `IDcountry`, `IDcarClass`, `Demo`) VALUES (2, 1, 'demo', 'demo', 'demo', 'devFxxVFZsuos', '', 'demo', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, 1);


Fehlermeldung!!!
#1146 - Table 'swissvirtualtigersch1.drivers' doesn't exist

Die gibts aber !





INSERT INTO `tracks` VALUES (1, 'Anderstorp');
INSERT INTO `tracks` VALUES (2, 'Barcelona');
INSERT INTO `tracks` VALUES (3, 'Brno');
INSERT INTO `tracks` VALUES (4, 'Donington');
INSERT INTO `tracks` VALUES (5, 'Enna');
INSERT INTO `tracks` VALUES (6, 'Estoril');
INSERT INTO `tracks` VALUES (7, 'Magny-Cours');
INSERT INTO `tracks` VALUES (8, 'Monza');
INSERT INTO `tracks` VALUES (9, 'Oschersleben');
INSERT INTO `tracks` VALUES (10, 'Spa');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (1, 1, 'Ferrari 550 Maranello', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (2, 1, 'Ferrari 575 GTC', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (3, 1, 'Chrysler Viper GTS-R', 'DaimlerChrysler');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (4, 1, 'Lister Storm', 'Lister Cars Ltd');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (5, 1, 'Lamborghini Murcielago R-GT', 'Automobili Lamborghini');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (6, 1, 'Saleen S7-R', 'Saleen Inc');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (7, 1, 'Chevrolet Corvette C5-R', 'General Motors');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (8, 1, 'Porsche 993 GT2', 'porsche AG');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (9, 2, 'Ferrari 360 Modena', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (10, 2, 'Porsche 996 GT3-RS', 'porsche AG');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (11, 2, 'Morgan Aero 8', 'Morgan Motor Company');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (12, 2, 'Bmw Z3 M', 'BMW Group');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (13, 2, 'Lotus Elise', 'Lotus Cars Ltd');
INSERT INTO `CarClass` VALUES (1, 'GT');
INSERT INTO `CarClass` VALUES (2, 'nGT');
INSERT INTO `country` VALUES (1, 'Afghanistan');
INSERT INTO `country` VALUES (2, 'Albania');
INSERT INTO `country` VALUES (3, 'Algeria');
INSERT INTO `country` VALUES (4, 'Andorra');
INSERT INTO `country` VALUES (5, 'Angola');
INSERT INTO `country` VALUES (6, 'Antigua And Barbuda');
INSERT INTO `country` VALUES (7, 'Argentina');
INSERT INTO `country` VALUES (8, 'Armenia');
INSERT INTO `country` VALUES (9, 'Australia');
INSERT INTO `country` VALUES (10, 'Austria');
INSERT INTO `country` VALUES (11, 'Azerbaijan');
INSERT INTO `country` VALUES (12, 'Bahamas');
INSERT INTO `country` VALUES (13, 'Bahrain');
INSERT INTO `country` VALUES (14, 'Bangladesh');
INSERT INTO `country` VALUES (15, 'Barbados');
INSERT INTO `country` VALUES (16, 'Belarus');
INSERT INTO `country` VALUES (17, 'Belgium');
INSERT INTO `country` VALUES (18, 'Belize');
INSERT INTO `country` VALUES (19, 'Benin');
INSERT INTO `country` VALUES (20, 'Bhutan');
INSERT INTO `country` VALUES (21, 'Bolivia');
INSERT INTO `country` VALUES (22, 'Bosnia Herzegovina');
INSERT INTO `country` VALUES (23, 'Botswana');
INSERT INTO `country` VALUES (24, 'Brazil');
INSERT INTO `country` VALUES (25, 'Brunei');
INSERT INTO `country` VALUES (26, 'Bulgaria');
INSERT INTO `country` VALUES (27, 'Burkinafaso');
INSERT INTO `country` VALUES (28, 'Burma');
INSERT INTO `country` VALUES (29, 'Burundi');
INSERT INTO `country` VALUES (30, 'Cambodia');
INSERT INTO `country` VALUES (31, 'Cameroon');
INSERT INTO `country` VALUES (32, 'Canada');
INSERT INTO `country` VALUES (33, 'Central African Rep');
INSERT INTO `country` VALUES (34, 'Chad');
INSERT INTO `country` VALUES (35, 'Chile');
INSERT INTO `country` VALUES (36, 'China');
INSERT INTO `country` VALUES (37, 'Columbia');
INSERT INTO `country` VALUES (38, 'Comoros');
INSERT INTO `country` VALUES (39, 'Congo');
INSERT INTO `country` VALUES (40, 'Costarica');
INSERT INTO `country` VALUES (41, 'Croatia');
INSERT INTO `country` VALUES (42, 'Cuba');
INSERT INTO `country` VALUES (43, 'Cyprus');
INSERT INTO `country` VALUES (44, 'Czech Republic');
INSERT INTO `country` VALUES (45, 'Demrepcongo');
INSERT INTO `country` VALUES (46, 'Denmark');
INSERT INTO `country` VALUES (47, 'Djibouti');
INSERT INTO `country` VALUES (48, 'Dominica');
INSERT INTO `country` VALUES (49, 'Dominican Rep');
INSERT INTO `country` VALUES (50, 'Ecuador');
INSERT INTO `country` VALUES (51, 'Egypt');
INSERT INTO `country` VALUES (52, 'Elsalvador');
INSERT INTO `country` VALUES (53, 'Eq Guinea');
INSERT INTO `country` VALUES (54, 'Eritrea');
INSERT INTO `country` VALUES (55, 'Estonia');
INSERT INTO `country` VALUES (56, 'Ethiopia');
INSERT INTO `country` VALUES (57, 'Fiji');
INSERT INTO `country` VALUES (58, 'Finland');
INSERT INTO `country` VALUES (59, 'France');
INSERT INTO `country` VALUES (60, 'Gabon');
INSERT INTO `country` VALUES (61, 'Gambia');
INSERT INTO `country` VALUES (62, 'Georgia');
INSERT INTO `country` VALUES (63, 'Germany');
INSERT INTO `country` VALUES (64, 'Ghana');
INSERT INTO `country` VALUES (65, 'Greece');
INSERT INTO `country` VALUES (66, 'Grenada');
INSERT INTO `country` VALUES (67, 'Grenadines');
INSERT INTO `country` VALUES (68, 'Guatemala');
INSERT INTO `country` VALUES (69, 'Guinea');
INSERT INTO `country` VALUES (70, 'Guineabissau');
INSERT INTO `country` VALUES (71, 'Guyana');
INSERT INTO `country` VALUES (72, 'Haiti');
INSERT INTO `country` VALUES (73, 'Honduras');
INSERT INTO `country` VALUES (74, 'Hong Kong');
INSERT INTO `country` VALUES (75, 'Hungary');
INSERT INTO `country` VALUES (76, 'Iceland');
INSERT INTO `country` VALUES (77, 'India');
INSERT INTO `country` VALUES (78, 'Indonesia');
INSERT INTO `country` VALUES (79, 'Iran');
INSERT INTO `country` VALUES (80, 'Iraq');
INSERT INTO `country` VALUES (81, 'Ireland');
INSERT INTO `country` VALUES (82, 'Israel');
INSERT INTO `country` VALUES (83, 'Italy');
INSERT INTO `country` VALUES (84, 'Ivory Coast');
INSERT INTO `country` VALUES (85, 'Jamaica');
INSERT INTO `country` VALUES (86, 'Japan');
INSERT INTO `country` VALUES (87, 'Jordan');
INSERT INTO `country` VALUES (88, 'Kazakhstan');
INSERT INTO `country` VALUES (89, 'Kenya');
INSERT INTO `country` VALUES (90, 'Kiribati');
INSERT INTO `country` VALUES (91, 'Kuwait');
INSERT INTO `country` VALUES (92, 'Kyrgyzstan');
INSERT INTO `country` VALUES (93, 'Laos');
INSERT INTO `country` VALUES (94, 'Latvia');
INSERT INTO `country` VALUES (95, 'Lebanon');
INSERT INTO `country` VALUES (96, 'Liberia');
INSERT INTO `country` VALUES (97, 'Libya');
INSERT INTO `country` VALUES (98, 'Liechtenstein');
INSERT INTO `country` VALUES (99, 'Lithuania');
INSERT INTO `country` VALUES (100, 'Luxembourg');
INSERT INTO `country` VALUES (101, 'Macadonia');
INSERT INTO `country` VALUES (102, 'Macau');
INSERT INTO `country` VALUES (103, 'Madagascar');
INSERT INTO `country` VALUES (104, 'Malawi');
INSERT INTO `country` VALUES (105, 'Malaysia');
INSERT INTO `country` VALUES (106, 'Maldives');
INSERT INTO `country` VALUES (107, 'Mali');
INSERT INTO `country` VALUES (108, 'Malta');
INSERT INTO `country` VALUES (109, 'Mauritania');
INSERT INTO `country` VALUES (110, 'Mauritius');
INSERT INTO `country` VALUES (111, 'Mexico');
INSERT INTO `country` VALUES (112, 'Micronesia');
INSERT INTO `country` VALUES (113, 'Moldova');
INSERT INTO `country` VALUES (114, 'Monaco');
INSERT INTO `country` VALUES (115, 'Mongolia');
INSERT INTO `country` VALUES (116, 'Morocco');
INSERT INTO `country` VALUES (117, 'Mozambique');
INSERT INTO `country` VALUES (118, 'Namibia');
INSERT INTO `country` VALUES (119, 'Nauru');
INSERT INTO `country` VALUES (120, 'Nepal');
INSERT INTO `country` VALUES (121, 'Neth Antilles');
INSERT INTO `country` VALUES (122, 'Netherlands');
INSERT INTO `country` VALUES (123, 'New Zealand');
INSERT INTO `country` VALUES (124, 'Nicaragua');
INSERT INTO `country` VALUES (125, 'Niger');
INSERT INTO `country` VALUES (126, 'Nigeria');
INSERT INTO `country` VALUES (127, 'North Korea');
INSERT INTO `country` VALUES (128, 'Norway');
INSERT INTO `country` VALUES (129, 'Oman');
INSERT INTO `country` VALUES (130, 'Pakistan');
INSERT INTO `country` VALUES (131, 'Panama');
INSERT INTO `country` VALUES (132, 'Papua Newguinea');
INSERT INTO `country` VALUES (133, 'Paraguay');
INSERT INTO `country` VALUES (134, 'Peru');
INSERT INTO `country` VALUES (135, 'Philippines');
INSERT INTO `country` VALUES (136, 'Poland');
INSERT INTO `country` VALUES (137, 'Portugal');
INSERT INTO `country` VALUES (138, 'Puertorico');
INSERT INTO `country` VALUES (139, 'Qatar');
INSERT INTO `country` VALUES (140, 'Romania');
INSERT INTO `country` VALUES (141, 'Russia');
INSERT INTO `country` VALUES (142, 'Rwanda');
INSERT INTO `country` VALUES (143, 'Sao Tome');
INSERT INTO `country` VALUES (144, 'Saudiarabia');
INSERT INTO `country` VALUES (145, 'Sealand');
INSERT INTO `country` VALUES (146, 'Senegal');
INSERT INTO `country` VALUES (147, 'Serbia');
INSERT INTO `country` VALUES (148, 'Seychelles');
INSERT INTO `country` VALUES (149, 'Sierraleone');
INSERT INTO `country` VALUES (150, 'Singapore');
INSERT INTO `country` VALUES (151, 'Slovakia');
INSERT INTO `country` VALUES (152, 'Slovenia');
INSERT INTO `country` VALUES (153, 'Solomon Islands');
INSERT INTO `country` VALUES (154, 'Somalia');
INSERT INTO `country` VALUES (155, 'South Africa');
INSERT INTO `country` VALUES (156, 'South Korea');
INSERT INTO `country` VALUES (157, 'South Korea');
INSERT INTO `country` VALUES (158, 'Spain');
INSERT INTO `country` VALUES (159, 'Srilanka');
INSERT INTO `country` VALUES (160, 'Stkitts Nevis');
INSERT INTO `country` VALUES (161, 'Stlucia');
INSERT INTO `country` VALUES (162, 'Sudan');
INSERT INTO `country` VALUES (163, 'Suriname');
INSERT INTO `country` VALUES (164, 'Sweden');
INSERT INTO `country` VALUES (165, 'Switzerland');
INSERT INTO `country` VALUES (166, 'Syria');
INSERT INTO `country` VALUES (167, 'Taiwan');
INSERT INTO `country` VALUES (168, 'Tajikistan');
INSERT INTO `country` VALUES (169, 'Tanzania');
INSERT INTO `country` VALUES (170, 'Thailand');
INSERT INTO `country` VALUES (171, 'Togo');
INSERT INTO `country` VALUES (172, 'Tonga');
INSERT INTO `country` VALUES (173, 'Trinidad And Tobago');
INSERT INTO `country` VALUES (174, 'Tunisia');
INSERT INTO `country` VALUES (175, 'Turkey');
INSERT INTO `country` VALUES (176, 'Turkmenistan');
INSERT INTO `country` VALUES (177, 'Tuvala');
INSERT INTO `country` VALUES (178, 'Uae');
INSERT INTO `country` VALUES (179, 'Uganda');
INSERT INTO `country` VALUES (180, 'Uk');
INSERT INTO `country` VALUES (181, 'Ukraine');
INSERT INTO `country` VALUES (182, 'United Nations');
INSERT INTO `country` VALUES (183, 'Uruguay');
INSERT INTO `country` VALUES (184, 'Usa');
INSERT INTO `country` VALUES (185, 'Ussr');
INSERT INTO `country` VALUES (186, 'Uzbekistan');
INSERT INTO `country` VALUES (187, 'Vanuatu');
INSERT INTO `country` VALUES (188, 'Venezuela');
INSERT INTO `country` VALUES (189, 'Vietnam');
INSERT INTO `country` VALUES (190, 'Western Samoa');
INSERT INTO `country` VALUES (191, 'Yemen');
INSERT INTO `country` VALUES (192, 'Yugoslavia');
INSERT INTO `country` VALUES (193, 'Zaire');
INSERT INTO `country` VALUES (194, 'Zambia');
INSERT INTO `country` VALUES (195, 'Zimbabwe');



#1146 - Table 'swissvirtualtigersch1.country' doesn't exist


Gibts auch


--------------------------------------------------------------------------------------------------



Und was soll das sein ?


Create Index LName ON Drivers (LName);



Alter table Standings add Index IX_Relationship1 (IDdriver);
Alter table Standings add Foreign Key (IDdriver) references Drivers (IDdriver) on delete restrict on update restrict;
Alter table RacePenalties add Index IX_Relationship6 (IDdriver);
Alter table RacePenalties add Foreign Key (IDdriver) references Drivers (IDdriver) on delete restrict on update restrict;
Alter table Additionals add Index IX_Relationship8 (IDdriver);
Alter table Additionals add Foreign Key (IDdriver) references Drivers (IDdriver) on delete cascade on update cascade;
Alter table DetailedResults add Index IX_Relationship15 (IDdriver);
Alter table DetailedResults add Foreign Key (IDdriver) references Drivers (IDdriver) on delete restrict on update restrict;
Alter table Files add Index IX_Relationship21 (IDdriver);
Alter table Files add Foreign Key (IDdriver) references Drivers (IDdriver) on delete set null on update restrict;
Alter table RacePenalties add Index IX_Relationship3 (IDpenalty);
Alter table RacePenalties add Foreign Key (IDpenalty) references Penalties (IDpenalty) on delete restrict on update restrict;
Alter table RacePenalties add Index IX_Relationship5 (IDrace);
Alter table RacePenalties add Foreign Key (IDrace) references Races (IDrace) on delete cascade on update restrict;
Alter table Standings add Index IX_Relationship7 (IDrace);
Alter table Standings add Foreign Key (IDrace) references Races (IDrace) on delete restrict on update restrict;
Alter table Additionals add Index IX_Relationship9 (IDrace);
Alter table Additionals add Foreign Key (IDrace) references Races (IDrace) on delete set null on update restrict;
Alter table DetailedResults add Index IX_Relationship16 (IDrace);
Alter table DetailedResults add Foreign Key (IDrace) references Races (IDrace) on delete cascade on update restrict;
Alter table Races add Index IX_Relationship2 (IDtracks);
Alter table Races add Foreign Key (IDtracks) references Tracks (IDtracks) on delete restrict on update restrict;
Alter table Drivers add Index IX_Relationship10 (IDcar,IDcarClass);
Alter table Drivers add Foreign Key (IDcar,IDcarClass) references Cars (IDcar,IDcarClass) on delete restrict on update cascade;
Alter table Standings add Index IX_Relationship19 (IDcar,IDcarClass);
Alter table Standings add Foreign Key (IDcar,IDcarClass) references Cars (IDcar,IDcarClass) on delete restrict on update restrict;
Alter table Cars add Index IX_Relationship11 (IDcarClass);
Alter table Cars add Foreign Key (IDcarClass) references CarClass (IDcarClass) on delete restrict on update restrict;
Alter table Drivers add Index IX_Relationship17 (IDcountry);
Alter table Drivers add Foreign Key (IDcountry) references Country (IDcountry) on delete set null on update restrict;
Alter table Drivers add Index IX_Relationship20 (IDteam);
Alter table Drivers add Foreign Key (IDteam) references Teams (IDteam) on delete restrict on update restrict;
Alter table Files add Index IX_Relationship22 (IDteam);
Alter table Files add Foreign Key (IDteam) references Teams (IDteam) on delete set null on update restrict;





Tiger
als Antwort auf: [#133509] Top
 
Swisstiger
Beiträge: 7
3. Jan 2005, 12:44
Beitrag #5 von 5
Beitrag ID: #133570
Bewertung:
(735 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen

Wieso geht das nicht oder wo ist der Fehler ?


Hallo


wieso kann ich das nicht in die Tabelle einfügen ?


INSERT INTO `drivers` (`IDdriver`, `IDcar`, `FName`, `LName`, `Nick`, `GTRnick`, `Passwd`, `City`, `email`, `www`, `BirthYear`, `SkinDate`, `SkinPath`, `Accepted`, `Arbiter`, `Division`, `DivShort`, `MailNotify`, `HideEmail`, `IDcountry`, `IDcarClass`, `Demo`, `IDteam`, `TeamLeader`, `Com_GG`, `Com_AOL`, `Com_MSN`, `Com_ICQ`, `Com_Tlen`, `Com_Yahoo`) VALUES (28, 7, 'admin', 'admin', 'admin', 'admin', 'adpexzg3FUZAk', '', 'admin', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, 1, 1, 1, 1, 0, NULL, 0, '', '', '', '', '', '');
INSERT INTO `drivers` (`IDdriver`, `IDcar`, `FName`, `LName`, `Nick`, `Passwd`, `City`, `email`, `www`, `BirthYear`, `SkinDate`, `SkinPath`, `Accepted`, `Arbiter`, `Division`, `DivShort`, `MailNotify`, `IDcountry`, `IDcarClass`, `Demo`) VALUES (2, 1, 'demo', 'demo', 'demo', 'devFxxVFZsuos', '', 'demo', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, 1);

INSERT INTO `tracks` VALUES (1, 'Anderstorp');
INSERT INTO `tracks` VALUES (2, 'Barcelona');
INSERT INTO `tracks` VALUES (3, 'Brno');
INSERT INTO `tracks` VALUES (4, 'Donington');
INSERT INTO `tracks` VALUES (5, 'Enna');
INSERT INTO `tracks` VALUES (6, 'Estoril');
INSERT INTO `tracks` VALUES (7, 'Magny-Cours');
INSERT INTO `tracks` VALUES (8, 'Monza');
INSERT INTO `tracks` VALUES (9, 'Oschersleben');
INSERT INTO `tracks` VALUES (10, 'Spa');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (1, 1, 'Ferrari 550 Maranello', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (2, 1, 'Ferrari 575 GTC', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (3, 1, 'Chrysler Viper GTS-R', 'DaimlerChrysler');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (4, 1, 'Lister Storm', 'Lister Cars Ltd');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (5, 1, 'Lamborghini Murcielago R-GT', 'Automobili Lamborghini');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (6, 1, 'Saleen S7-R', 'Saleen Inc');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (7, 1, 'Chevrolet Corvette C5-R', 'General Motors');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (8, 1, 'Porsche 993 GT2', 'porsche AG');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (9, 2, 'Ferrari 360 Modena', 'Ferrari SpA');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (10, 2, 'Porsche 996 GT3-RS', 'porsche AG');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (11, 2, 'Morgan Aero 8', 'Morgan Motor Company');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (12, 2, 'Bmw Z3 M', 'BMW Group');
INSERT INTO `cars` (`IDcar`, `IDcarClass`, `CarName`, `CarConstructor`) VALUES (13, 2, 'Lotus Elise', 'Lotus Cars Ltd');
INSERT INTO `CarClass` VALUES (1, 'GT');
INSERT INTO `CarClass` VALUES (2, 'nGT');
INSERT INTO `country` VALUES (1, 'Afghanistan');
INSERT INTO `country` VALUES (2, 'Albania');
INSERT INTO `country` VALUES (3, 'Algeria');
INSERT INTO `country` VALUES (4, 'Andorra');
INSERT INTO `country` VALUES (5, 'Angola');
INSERT INTO `country` VALUES (6, 'Antigua And Barbuda');
INSERT INTO `country` VALUES (7, 'Argentina');
INSERT INTO `country` VALUES (8, 'Armenia');
INSERT INTO `country` VALUES (9, 'Australia');
INSERT INTO `country` VALUES (10, 'Austria');
INSERT INTO `country` VALUES (11, 'Azerbaijan');
INSERT INTO `country` VALUES (12, 'Bahamas');
INSERT INTO `country` VALUES (13, 'Bahrain');
INSERT INTO `country` VALUES (14, 'Bangladesh');
INSERT INTO `country` VALUES (15, 'Barbados');
INSERT INTO `country` VALUES (16, 'Belarus');
INSERT INTO `country` VALUES (17, 'Belgium');
INSERT INTO `country` VALUES (18, 'Belize');
INSERT INTO `country` VALUES (19, 'Benin');
INSERT INTO `country` VALUES (20, 'Bhutan');
INSERT INTO `country` VALUES (21, 'Bolivia');
INSERT INTO `country` VALUES (22, 'Bosnia Herzegovina');
INSERT INTO `country` VALUES (23, 'Botswana');
INSERT INTO `country` VALUES (24, 'Brazil');
INSERT INTO `country` VALUES (25, 'Brunei');
INSERT INTO `country` VALUES (26, 'Bulgaria');
INSERT INTO `country` VALUES (27, 'Burkinafaso');
INSERT INTO `country` VALUES (28, 'Burma');
INSERT INTO `country` VALUES (29, 'Burundi');
INSERT INTO `country` VALUES (30, 'Cambodia');
INSERT INTO `country` VALUES (31, 'Cameroon');
INSERT INTO `country` VALUES (32, 'Canada');
INSERT INTO `country` VALUES (33, 'Central African Rep');
INSERT INTO `country` VALUES (34, 'Chad');
INSERT INTO `country` VALUES (35, 'Chile');
INSERT INTO `country` VALUES (36, 'China');
INSERT INTO `country` VALUES (37, 'Columbia');
INSERT INTO `country` VALUES (38, 'Comoros');
INSERT INTO `country` VALUES (39, 'Congo');
INSERT INTO `country` VALUES (40, 'Costarica');
INSERT INTO `country` VALUES (41, 'Croatia');
INSERT INTO `country` VALUES (42, 'Cuba');
INSERT INTO `country` VALUES (43, 'Cyprus');
INSERT INTO `country` VALUES (44, 'Czech Republic');
INSERT INTO `country` VALUES (45, 'Demrepcongo');
INSERT INTO `country` VALUES (46, 'Denmark');
INSERT INTO `country` VALUES (47, 'Djibouti');
INSERT INTO `country` VALUES (48, 'Dominica');
INSERT INTO `country` VALUES (49, 'Dominican Rep');
INSERT INTO `country` VALUES (50, 'Ecuador');
INSERT INTO `country` VALUES (51, 'Egypt');
INSERT INTO `country` VALUES (52, 'Elsalvador');
INSERT INTO `country` VALUES (53, 'Eq Guinea');
INSERT INTO `country` VALUES (54, 'Eritrea');
INSERT INTO `country` VALUES (55, 'Estonia');
INSERT INTO `country` VALUES (56, 'Ethiopia');
INSERT INTO `country` VALUES (57, 'Fiji');
INSERT INTO `country` VALUES (58, 'Finland');
INSERT INTO `country` VALUES (59, 'France');
INSERT INTO `country` VALUES (60, 'Gabon');
INSERT INTO `country` VALUES (61, 'Gambia');
INSERT INTO `country` VALUES (62, 'Georgia');
INSERT INTO `country` VALUES (63, 'Germany');
INSERT INTO `country` VALUES (64, 'Ghana');
INSERT INTO `country` VALUES (65, 'Greece');
INSERT INTO `country` VALUES (66, 'Grenada');
INSERT INTO `country` VALUES (67, 'Grenadines');
INSERT INTO `country` VALUES (68, 'Guatemala');
INSERT INTO `country` VALUES (69, 'Guinea');
INSERT INTO `country` VALUES (70, 'Guineabissau');
INSERT INTO `country` VALUES (71, 'Guyana');
INSERT INTO `country` VALUES (72, 'Haiti');
INSERT INTO `country` VALUES (73, 'Honduras');
INSERT INTO `country` VALUES (74, 'Hong Kong');
INSERT INTO `country` VALUES (75, 'Hungary');
INSERT INTO `country` VALUES (76, 'Iceland');
INSERT INTO `country` VALUES (77, 'India');
INSERT INTO `country` VALUES (78, 'Indonesia');
INSERT INTO `country` VALUES (79, 'Iran');
INSERT INTO `country` VALUES (80, 'Iraq');
INSERT INTO `country` VALUES (81, 'Ireland');
INSERT INTO `country` VALUES (82, 'Israel');
INSERT INTO `country` VALUES (83, 'Italy');
INSERT INTO `country` VALUES (84, 'Ivory Coast');
INSERT INTO `country` VALUES (85, 'Jamaica');
INSERT INTO `country` VALUES (86, 'Japan');
INSERT INTO `country` VALUES (87, 'Jordan');
INSERT INTO `country` VALUES (88, 'Kazakhstan');
INSERT INTO `country` VALUES (89, 'Kenya');
INSERT INTO `country` VALUES (90, 'Kiribati');
INSERT INTO `country` VALUES (91, 'Kuwait');
INSERT INTO `country` VALUES (92, 'Kyrgyzstan');
INSERT INTO `country` VALUES (93, 'Laos');
INSERT INTO `country` VALUES (94, 'Latvia');
INSERT INTO `country` VALUES (95, 'Lebanon');
INSERT INTO `country` VALUES (96, 'Liberia');
INSERT INTO `country` VALUES (97, 'Libya');
INSERT INTO `country` VALUES (98, 'Liechtenstein');
INSERT INTO `country` VALUES (99, 'Lithuania');
INSERT INTO `country` VALUES (100, 'Luxembourg');
INSERT INTO `country` VALUES (101, 'Macadonia');
INSERT INTO `country` VALUES (102, 'Macau');
INSERT INTO `country` VALUES (103, 'Madagascar');
INSERT INTO `country` VALUES (104, 'Malawi');
INSERT INTO `country` VALUES (105, 'Malaysia');
INSERT INTO `country` VALUES (106, 'Maldives');
INSERT INTO `country` VALUES (107, 'Mali');
INSERT INTO `country` VALUES (108, 'Malta');
INSERT INTO `country` VALUES (109, 'Mauritania');
INSERT INTO `country` VALUES (110, 'Mauritius');
INSERT INTO `country` VALUES (111, 'Mexico');
INSERT INTO `country` VALUES (112, 'Micronesia');
INSERT INTO `country` VALUES (113, 'Moldova');
INSERT INTO `country` VALUES (114, 'Monaco');
INSERT INTO `country` VALUES (115, 'Mongolia');
INSERT INTO `country` VALUES (116, 'Morocco');
INSERT INTO `country` VALUES (117, 'Mozambique');
INSERT INTO `country` VALUES (118, 'Namibia');
INSERT INTO `country` VALUES (119, 'Nauru');
INSERT INTO `country` VALUES (120, 'Nepal');
INSERT INTO `country` VALUES (121, 'Neth Antilles');
INSERT INTO `country` VALUES (122, 'Netherlands');
INSERT INTO `country` VALUES (123, 'New Zealand');
INSERT INTO `country` VALUES (124, 'Nicaragua');
INSERT INTO `country` VALUES (125, 'Niger');
INSERT INTO `country` VALUES (126, 'Nigeria');
INSERT INTO `country` VALUES (127, 'North Korea');
INSERT INTO `country` VALUES (128, 'Norway');
INSERT INTO `country` VALUES (129, 'Oman');
INSERT INTO `country` VALUES (130, 'Pakistan');
INSERT INTO `country` VALUES (131, 'Panama');
INSERT INTO `country` VALUES (132, 'Papua Newguinea');
INSERT INTO `country` VALUES (133, 'Paraguay');
INSERT INTO `country` VALUES (134, 'Peru');
INSERT INTO `country` VALUES (135, 'Philippines');
INSERT INTO `country` VALUES (136, 'Poland');
INSERT INTO `country` VALUES (137, 'Portugal');
INSERT INTO `country` VALUES (138, 'Puertorico');
INSERT INTO `country` VALUES (139, 'Qatar');
INSERT INTO `country` VALUES (140, 'Romania');
INSERT INTO `country` VALUES (141, 'Russia');
INSERT INTO `country` VALUES (142, 'Rwanda');
INSERT INTO `country` VALUES (143, 'Sao Tome');
INSERT INTO `country` VALUES (144, 'Saudiarabia');
INSERT INTO `country` VALUES (145, 'Sealand');
INSERT INTO `country` VALUES (146, 'Senegal');
INSERT INTO `country` VALUES (147, 'Serbia');
INSERT INTO `country` VALUES (148, 'Seychelles');
INSERT INTO `country` VALUES (149, 'Sierraleone');
INSERT INTO `country` VALUES (150, 'Singapore');
INSERT INTO `country` VALUES (151, 'Slovakia');
INSERT INTO `country` VALUES (152, 'Slovenia');
INSERT INTO `country` VALUES (153, 'Solomon Islands');
INSERT INTO `country` VALUES (154, 'Somalia');
INSERT INTO `country` VALUES (155, 'South Africa');
INSERT INTO `country` VALUES (156, 'South Korea');
INSERT INTO `country` VALUES (157, 'South Korea');
INSERT INTO `country` VALUES (158, 'Spain');
INSERT INTO `country` VALUES (159, 'Srilanka');
INSERT INTO `country` VALUES (160, 'Stkitts Nevis');
INSERT INTO `country` VALUES (161, 'Stlucia');
INSERT INTO `country` VALUES (162, 'Sudan');
INSERT INTO `country` VALUES (163, 'Suriname');
INSERT INTO `country` VALUES (164, 'Sweden');
INSERT INTO `country` VALUES (165, 'Switzerland');
INSERT INTO `country` VALUES (166, 'Syria');
INSERT INTO `country` VALUES (167, 'Taiwan');
INSERT INTO `country` VALUES (168, 'Tajikistan');
INSERT INTO `country` VALUES (169, 'Tanzania');
INSERT INTO `country` VALUES (170, 'Thailand');
INSERT INTO `country` VALUES (171, 'Togo');
INSERT INTO `country` VALUES (172, 'Tonga');
INSERT INTO `country` VALUES (173, 'Trinidad And Tobago');
INSERT INTO `country` VALUES (174, 'Tunisia');
INSERT INTO `country` VALUES (175, 'Turkey');
INSERT INTO `country` VALUES (176, 'Turkmenistan');
INSERT INTO `country` VALUES (177, 'Tuvala');
INSERT INTO `country` VALUES (178, 'Uae');
INSERT INTO `country` VALUES (179, 'Uganda');
INSERT INTO `country` VALUES (180, 'Uk');
INSERT INTO `country` VALUES (181, 'Ukraine');
INSERT INTO `country` VALUES (182, 'United Nations');
INSERT INTO `country` VALUES (183, 'Uruguay');
INSERT INTO `country` VALUES (184, 'Usa');
INSERT INTO `country` VALUES (185, 'Ussr');
INSERT INTO `country` VALUES (186, 'Uzbekistan');
INSERT INTO `country` VALUES (187, 'Vanuatu');
INSERT INTO `country` VALUES (188, 'Venezuela');
INSERT INTO `country` VALUES (189, 'Vietnam');
INSERT INTO `country` VALUES (190, 'Western Samoa');
INSERT INTO `country` VALUES (191, 'Yemen');
INSERT INTO `country` VALUES (192, 'Yugoslavia');
INSERT INTO `country` VALUES (193, 'Zaire');
INSERT INTO `country` VALUES (194, 'Zambia');
INSERT INTO `country` VALUES (195, 'Zimbabwe');



Create Index LName ON Drivers (LName);



Alter table Standings add Index IX_Relationship1 (IDdriver);
Alter table Standings add Foreign Key (IDdriver) references Drivers (IDdriver) on delete restrict on update restrict;
Alter table RacePenalties add Index IX_Relationship6 (IDdriver);
Alter table RacePenalties add Foreign Key (IDdriver) references Drivers (IDdriver) on delete restrict on update restrict;
Alter table Additionals add Index IX_Relationship8 (IDdriver);
Alter table Additionals add Foreign Key (IDdriver) references Drivers (IDdriver) on delete cascade on update cascade;
Alter table DetailedResults add Index IX_Relationship15 (IDdriver);
Alter table DetailedResults add Foreign Key (IDdriver) references Drivers (IDdriver) on delete restrict on update restrict;
Alter table Files add Index IX_Relationship21 (IDdriver);
Alter table Files add Foreign Key (IDdriver) references Drivers (IDdriver) on delete set null on update restrict;
Alter table RacePenalties add Index IX_Relationship3 (IDpenalty);
Alter table RacePenalties add Foreign Key (IDpenalty) references Penalties (IDpenalty) on delete restrict on update restrict;
Alter table RacePenalties add Index IX_Relationship5 (IDrace);
Alter table RacePenalties add Foreign Key (IDrace) references Races (IDrace) on delete cascade on update restrict;
Alter table Standings add Index IX_Relationship7 (IDrace);
Alter table Standings add Foreign Key (IDrace) references Races (IDrace) on delete restrict on update restrict;
Alter table Additionals add Index IX_Relationship9 (IDrace);
Alter table Additionals add Foreign Key (IDrace) references Races (IDrace) on delete set null on update restrict;
Alter table DetailedResults add Index IX_Relationship16 (IDrace);
Alter table DetailedResults add Foreign Key (IDrace) references Races (IDrace) on delete cascade on update restrict;
Alter table Races add Index IX_Relationship2 (IDtracks);
Alter table Races add Foreign Key (IDtracks) references Tracks (IDtracks) on delete restrict on update restrict;
Alter table Drivers add Index IX_Relationship10 (IDcar,IDcarClass);
Alter table Drivers add Foreign Key (IDcar,IDcarClass) references Cars (IDcar,IDcarClass) on delete restrict on update cascade;
Alter table Standings add Index IX_Relationship19 (IDcar,IDcarClass);
Alter table Standings add Foreign Key (IDcar,IDcarClass) references Cars (IDcar,IDcarClass) on delete restrict on update restrict;
Alter table Cars add Index IX_Relationship11 (IDcarClass);
Alter table Cars add Foreign Key (IDcarClass) references CarClass (IDcarClass) on delete restrict on update restrict;
Alter table Drivers add Index IX_Relationship17 (IDcountry);
Alter table Drivers add Foreign Key (IDcountry) references Country (IDcountry) on delete set null on update restrict;
Alter table Drivers add Index IX_Relationship20 (IDteam);
Alter table Drivers add Foreign Key (IDteam) references Teams (IDteam) on delete restrict on update restrict;
Alter table Files add Index IX_Relationship22 (IDteam);
Alter table Files add Foreign Key (IDteam) references Teams (IDteam) on delete set null on update restrict;




Tiger
als Antwort auf: [#133509] Top
 
X