Morphius Posted December 14, 2011 Report Share Posted December 14, 2011 Tātad, struktūra: DROP TABLE IF EXISTS `field_caption`; CREATE TABLE IF NOT EXISTS `field_caption` ( `id` int(5) NOT NULL auto_increment, `Cid` int(5) default '0', `lang` varchar(10) character set utf8 collate utf8_bin default NULL, `caption` varchar(255) default NULL, `description` varchar(255) default NULL, `match` enum('yes','no') default 'no', PRIMARY KEY (`id`), KEY `Cid` (`Cid`), KEY `lang` (`lang`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=572 ; query: INSERT INTO field_caption SET id = '40',Cid = '35',lang = 'english',caption = '??? ???',description = '',match = 'no' un problēma: #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 'match = 'no'' at line 1 Visādi izmēģināju...bet kāmdēļ skripts nevēlas ievietot ierakstu, es neiebraucu... Ja match'am uztaisa default null, tad arī nevēlas pievienot. Vienīgi kag ieraksts tiek pievienots ir tad, kad query match nemaz neliek... Manuprāt te ir kāds sīkumiņš...bet vai kāds var pateikt kas par sīkumiņu? ;) Paldies jau iepriekš Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 14, 2011 Report Share Posted December 14, 2011 Ieliec visu kolonu nosaukumus `tikos`. Quote Link to comment Share on other sites More sharing options...
Gints Plivna Posted December 14, 2011 Report Share Posted December 14, 2011 Vienīgi kag ieraksts tiek pievienots ir tad, kad query match nemaz neliek... Tas parasti (arī šoreiz) nozīmē tieši vienu lietu - rezervētie vārdi: http://dev.mysql.com/doc/refman/5.6/en/reserved-words.html Gints Plivna http://datubazes.wordpress.com Quote Link to comment Share on other sites More sharing options...
Morphius Posted December 14, 2011 Author Report Share Posted December 14, 2011 Tikko vēlējos uzdot jautajumu vai tas match nav starp rezervētajiem :) Nu redz, problēma atrisināta ;) Paldies ;) Ja kādam ievajagās tad te ir SQL validātors: http://developer.mimer.se/validator/parser200x/index.tml#parser Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.