Username:divel
geschrieben am 02.03.2005 um 14:29 Uhr
|
Hallo
Das schreib der mir wenn ich immer die sql detei in meiner datenbank einfugen möchte . bitte um hilfe.
SQL-Befehl:
#######################################################
# Gr8 Ladder v1.00 #
# #
# autor: cagrET #
# #
# email: cagret@yahoo.com #
#######################################################
CREATE TABLE scgl_de_brackets(
bid int NOT NULL AUTO_INCREMENT ,
TYPE int NOT NULL default '0',
title varchar( 30 ) NOT NULL default '',
date varchar( 20 ) NOT NULL default '',
DATA text,
ip varchar( 15 ) NOT NULL default '',
PRIMARY KEY ( bid )
)
MySQL meldet:
#1046 - No Database Selected
Genau das gleiche bei diser datei:
ihr möchte ich auch gehlofen werden.
SQL-Befehl:
INSERT INTO scgl_info
SET sezon =2,
STATUS =1 ALTER TABLE `scgl_clans` ADD rating2 smallint NOT NULL default '0' AFTER losts2v2_1,
ADD high2 smallint NOT NULL default '0' AFTER rating2,
ADD wins2 smallint NOT NULL default '0' AFTER high2,
ADD losts2 smallint NOT NULL default '0' AFTER wins2,
ADD wins1v1_2 smallint NOT NULL default '0' AFTER losts2,
ADD losts1v1_2 smallint NOT NULL default '0' AFTER wins1v1_2,
ADD wins2v2_2 smallint NOT NULL default '0' AFTER losts1v1_2,
ADD losts2v2_2 smallint NOT NULL default '0' AFTER wins2v2_2,
ADD INDEX rating2( rating2 ) ALTER TABLE `scgl_players` ADD rating2 smallint unsigned NOT NULL default '0' AFTER team_losts1,
ADD high2 smallint unsigned NOT NULL default '0' AFTER rating2,
ADD wins2 smallint unsigned NOT NULL default '0' AFTER high2,
ADD losts2 smallint unsigned NOT NULL default '0' AFTER wins2,
ADD team_rating2 smallint unsigned NOT NULL default '0' AFTER losts2,
ADD team_high2 smallint unsigned NOT NULL default '0' AFTER team_rating2,
ADD team_wins2 smallint unsigned NOT NULL default '0' AFTER team_high2,
ADD team_losts2 smallint unsigned NOT NULL default '0' AFTER team_wins2,
ADD INDEX rating2( rating2, pid, nick, wins2, losts2 ) ,
ADD INDEX team_rating2( team_rating2, pid, nick, nickTP, team_wins2, team_losts2 ) CREATE TABLE scgl_cwgames2(
gid int NOT NULL AUTO_INCREMENT ,
STATUS tinyint( 1 ) NOT NULL default '0',
time varchar( 14 ) NOT NULL default '0',
wrating smallint NOT NULL default '0',
wpoints smallint NOT NULL default '0',
wcid smallint NOT NULL default '0',
wclan varchar( 50 ) NOT NULL default '',
lrating smallint NOT NULL default '0',
lpoints smallint NOT NULL default '0',
lcid smallint NOT NULL default '0',
lclan varchar( 50 ) NOT NULL default '',
games text,
wdesc text,
ldesc text,
lip varchar( 16 ) NOT NULL default '',
wip varchar( 16 ) NOT NULL default '',
INDEX wcid( STATUS , wcid ) ,
INDEX lcid( STATUS , lcid ) ,
INDEX STATUS ( STATUS , time ) ,
PRIMARY KEY ( gid )
) TYPE = MYISAM
MySQL meldet:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter table `scgl_clans`
add rating2 smallint not null default |