ОБСУЖДЕНИЕ

табли Модуля

10 сообщений1 просмотровЗакрыта
#1
Ребята ,скажите что не так ...
есть табли Фото дуелей

CREATE TABLE IF NOT EXISTS `duel` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`opponent` int(11) NOT NULL,
`rubric` int(11) NOT NULL,
`time` int(11) NOT NULL,
`finish` int(11) NOT NULL DEFAULT '0',
`act` int(2) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FI

CREATE TABLE IF NOT EXISTS `duels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ider` int(11) NOT NULL,
`idur` int(11) NOT NULL,
`time` int(11) NOT NULL,
`koler` int(11) NOT NULL DEFAULT '0',
`kolur` int(11) NOT NULL DEFAULT '0',
`act` int(2) NOT NULL DEFAULT '0',
`yes` int(2) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMEN

CREATE TABLE IF NOT EXISTS `duels_golos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`idd` int(11) NOT NULL,
`man` int(11) NOT NULL,
`idz` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMEN

CREATE TABLE IF NOT EXISTS `duel_vote` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_user` int(11) NOT NULL DEFAULT '0',
`id_opponent` int(11) NOT NULL DEFAULT '0',
`id_duel` int(11) NOT NULL DEFAULT '0',
`man` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FI

при их заливании видает ошибку
вот такую

Ошибка в запросе SQL!

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FI CREATE TABLE IF NOT EXISTS `duels` ( `id` int(11) NOT NULL AUTO_INCREME' at line 10

в чем дело
#2
Синтаксис нарушен, пользуйся перводчиком если не понимаешь инглиш.
У тебя где AUTO_INCREMEN
должно быть AUTO_INCREMENT=1;
#3
и ето все ...
#4
исправил .. ,неработает всеравно
#5
Что не работает?
SQL

CREATE TABLE IF NOT EXISTS `duels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ider` int(11) NOT NULL,
`idur` int(11) NOT NULL,
`time` int(11) NOT NULL,
`koler` int(11) NOT NULL DEFAULT '0',
`kolur` int(11) NOT NULL DEFAULT '0',
`act` int(2) NOT NULL DEFAULT '0',
`yes` int(2) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

#6
вот

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FI CREATE TABLE IF NOT EXISTS `duels` ( `id` int (11 ) NOT NULL AUTO_INCREMENT' at line 11
#7
Создай вручную не насилуют себя
#8
как
#9
В панеле новая таблица 8 полей все параметры уже есть
#10
Тему закрыл friks!
Причина: решено