.

Błąd, MySQL

 
Nowy temat Odpowiedz    Forum Compzone.Org Strona Główna -> Bazy danych
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
kubekw1
Użytkownik


Dołączył: 30 Wrz 2008
Posty: 1

PostWysłany: Wto Wrz 30, 2008 8:26 pm    Temat postu: Błąd, MySQL cytuj

Witam,

Mój błąd polega na:

Błąd

zapytanie SQL:

--
-- Baza danych: `feellikesh_fls`
--
-- --------------------------------------------------------
--
-- Struktura tabeli dla `jos_banner`
--
(
`bid` int( 11 ) NOT NULL AUTO_INCREMENT , `cid` int( 11 ) NOT NULL default '0', `type` varchar( 10 ) NOT NULL default 'banner', `name` varchar( 50 ) NOT NULL default '', `imptotal` int( 11 ) NOT NULL default '0', `impmade` int( 11 ) NOT NULL default '0', `clicks` int( 11 ) NOT NULL default '0', `imageurl` varchar( 100 ) NOT NULL default '', `clickurl` varchar( 200 ) NOT NULL default '', `date` datetime default NULL , `showBanner` tinyint( 1 ) NOT NULL default '0', `checked_out` tinyint( 1 ) NOT NULL default '0', `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00', `editor` varchar( 50 ) default NULL , `custombannercode` text, PRIMARY KEY ( `bid` ) , KEY `viewbanner` ( `showBanner` )
) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =9;


MySQL zwrócił komunikat:
#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 '`bid` int(11) NOT NULL auto_increment,
`cid` int(11) NOT NULL default '0',
' at line 2

Bardzo potrzebuje pomocy, ponieważ muszę w miare szybko odpalić stronę zespołu.
Za pomoc będe naprawde wdzięczny.

Pozdrawiam,
Jakub.
Powrót do góry
profil pw
jedre
Administrator


Dołączył: 06 Lip 2005
Posty: 167
Skąd: Myślibórz

PostWysłany: Sro Paź 08, 2008 11:30 am    Temat postu: cytuj

CREATE TABLE gdzieś ci wcięło....
Kod:
--
-- Struktura tabeli dla  `jos_banner`
--

CREATE TABLE IF NOT EXISTS `jos_banner` (
  `bid` int(11) NOT NULL auto_increment,
  `cid` int(11) NOT NULL default '0',
  `type` varchar(10) NOT NULL default 'banner',
  `name` varchar(50) NOT NULL default '',
  `imptotal` int(11) NOT NULL default '0',
  `impmade` int(11) NOT NULL default '0',
  `clicks` int(11) NOT NULL default '0',
  `imageurl` varchar(100) NOT NULL default '',
  `clickurl` varchar(200) NOT NULL default '',
  `date` datetime default NULL,
  `showBanner` tinyint(1) NOT NULL default '0',
  `checked_out` tinyint(1) NOT NULL default '0',
  `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
  `editor` varchar(50) default NULL,
  `custombannercode` text,
  PRIMARY KEY  (`bid`),
  KEY `viewbanner` (`showBanner`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

_________________

Sex, Drugs and PHP
Compzone.Org - Programowanie, PHP, MySQL | Tworzenie stron WWW
Powrót do góry
profil pw email www GG
Wyświetl posty z ostatnich:   
Nowy temat Odpowiedz    Forum Compzone.Org Strona Główna -> Bazy danych Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


Powered by phpBB © 2001, 2005 phpBB Group