gastrolyor
1

Ошибка SQL запроса #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax t

03.08.2013, 16:39. Показов 3634. Ответов 1
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Помогите пожалуйста!

MySQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CREATE TABLE `tickets` ( 
`id` int(4) NOT NULL auto_increment, 
`user` int(11) NOT NULL default '0', 
PRIMARY KEY (`id`) 
) TYPE=MyISAM; 
 
CREATE TABLE `lottery_config` ( 
`name` varchar(255) NOT NULL default '', 
`value` varchar(255) NOT NULL default '', 
PRIMARY KEY (`name`) 
) ENGINE=MyISAM DEFAULT CHARSET=cp1251'
 
INSERT INTO `lottery_config` VALUES ('ticket_amount', '100'); 
INSERT INTO `lottery_config` VALUES ('ticket_amount_type', 'MB'); 
INSERT INTO `lottery_config` VALUES ('user_tickets', '1'); 
INSERT INTO `lottery_config` VALUES ('class_allowed', '80|96'); 
INSERT INTO `lottery_config` VALUES ('total_winners', '1'); 
INSERT INTO `lottery_config` VALUES ('prize_fund', '25000'); 
INSERT INTO `lottery_config` VALUES ('start_date', '0000-00-00 00:00:00'); 
INSERT INTO `lottery_config` VALUES ('end_date', '0000-00-00 00:00:00'); 
INSERT INTO `lottery_config` VALUES ('use_prize_fund', '0'); 
INSERT INTO `lottery_config` VALUES ('enable', '0'); 
INSERT INTO `lottery_config` VALUES ('lottery_winners', ''); 
INSERT INTO `lottery_config` VALUES ('lottery_winners_amount', ''); 
INSERT INTO `lottery_config` VALUES ('lottery_winners_time', '');
=============================================================
SQL-запрос:

MySQL
1
2
3
4
5
CREATE TABLE `tickets` (
`id` int( 4 ) NOT NULL AUTO_INCREMENT ,
`user` int( 11 ) NOT NULL default '0',
PRIMARY KEY ( `id` ) 
) TYPE = MYISAM ;
Ответ MySQL:
#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 'TYPE=MyISAM' at line 5

Вот такая питрушка выходит когда делаю SQL запрос
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
03.08.2013, 16:39
Ответы с готовыми решениями:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the rig
Помогите пожалуйста. Когда создаю таблицу: CREATE TABLE test(ID INT NOT NULL PRIMARY KEY...

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 '' at line 1
При написании обработчика данных формы ввода,произошла проблема с MySQL,браузер показывает такое...

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 '111.bdbd12 b' a
Всем привет, ребята у меня странная ошибка с БД короче.. Создаю таблицу все норм. создается а вот...

Ошибка: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
Здравствуйте, php, mysql начала изучать совсем недавно, сегодня столкнулась с такой ошибкой: "You...

1
632 / 440 / 67
Регистрация: 19.09.2012
Сообщений: 1,632
06.08.2013, 00:05 2
SQL
1
2
3
4
5
CREATE TABLE `tickets` (
`id` INT( 4 ) NOT NULL AUTO_INCREMENT ,
`user` INT( 11 ) NOT NULL DEFAULT '0',
PRIMARY KEY ( `id` ) 
)ENGINE = MYISAM ;
0
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
06.08.2013, 00:05
Помогаю со студенческими работами здесь

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the r
Доброго времени суток всем. Вознакила ошибка "You have an error in your SQL syntax; check the...

You have an error in your sql syntax check the manual that corresponds
Здравствуйте, у меня есть парсер на c# который заносит статьи в бд. private void insertData()...

Создаю таблицу в MySQL матерится: #1064 - You have an error in your SQL syntax
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL...

Ошибка: 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 ''','')'
Ребята, такая проблема: Есть денвер (PHPmyAdmin и т.д.) в каталоге www лежит мой сайт. В файле...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
2
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2023, CyberForum.ru