在我使用新答案后,我上传了文件,这就是我现在得到的。
SQL query:
CREATE TABLE IF NOT EXISTS `games` ( ) INSERT INTO `games` (`name`, `creatorid`, `gameid`, `id`, `plays) VALUES ('בדיקה', 'לא ידוע', 1,1,0) CREATE TABLE IF NOT EXISTS `gamewall` ( `userid` int(11) NOT NULL, `reason` text NOT NULL, `comment` text NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `bannedbyid` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `bans_IP` ( `IP` mediumtext NOT NULL, `id` int(11) NOT NULL AUTO_INCREMENT, `bannerid` int(11) NOT NULL, `reason` mediumtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; CREATE TABLE IF NOT EXISTS `buysell` ( `buysell` int(11) NOT NULL, `sellerid` int(11) NOT NULL, `price` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `competitions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` mediumtext NOT NULL, `startedbyid` int(11) NOT NULL, `descripti[...]
MySQL said: Documentation
#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 ')
INSERT INTO `games` (`name`, `creatorid`, `gameid`, `id`, `plays) VALUES
('' at line 3
答案 0 :(得分:0)
您收到此错误是因为您选择了表格中的所有列,但有些值可用于第一个11
列,而您最后错过了)
此代码将解决您的问题
INSERT INTO `accounts` (
`Username`,
`Password`,
`Email`,
`salt`,
`Reebs`,
`online`,
`lastOnline`,
`lastOnlineMinutes`,
`lastOnlineHours`,
`status`,
`blurb`
)
VALUES
(
'AvatarLife',
'df3ed1ad53c4cc2f3b5c6bdf04d33a9f094df53b',
'fawrsnipng@gmail.com',
'jBqnW?Dk9Epzpg4',
'9223372036854775807',
'1',
'205',
'26',
'13',
'',
'Avatar Life is the only good life!')