Reply
where is the error
Old 05-15-2007, 06:50 PM where is the error
Novice Talker

Posts: 8
hi
im trying to import a database table, but it has an error

can someone tell me what it is, and give the corrected version

Code:
DROP TABLE IF EXISTS `information`;
CREATE TABLE `information` (
  `information_id` tinyint(3) unsigned NOT NULL auto_increment,
  `information_group_id` int(11) unsigned NOT NULL default '0',
  `information_title` varchar(255) NOT NULL default '',
  `information_description` text NOT NULL,
  `parent_id` int(11) default NULL,
  `sort_order` tinyint(3) unsigned NOT NULL default '0',
  `visible` enum('1','0') NOT NULL default '1',
  `language_id` int(11) NOT NULL default '0',
  PRIMARY KEY  (`information_id`,`language_id`)
 ENGINE=MyISAM  DEFAULT CHARSET=latin1 );
-- 
-- Table structure for table `information_group`
-- 
DROP TABLE IF EXISTS `information_group`;
CREATE TABLE `information_group` (
  `information_group_id` int(11) NOT NULL auto_increment,
  `information_group_title` varchar(64) NOT NULL default '',
  `information_group_description` varchar(255) NOT NULL default '',
  `sort_order` int(5) default NULL,
  `visible` int(1) default '1',
  `locked` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`information_group_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 ;
ronnieb is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-15-2007, 09:56 PM Re: where is the error
vn5ltr's Avatar
Skilled Talker

Posts: 93
Location: Melbourne, Australia
Code:
DROP TABLE IF EXISTS `information`;
CREATE TABLE `information` (
  `information_id` tinyint(3) unsigned NOT NULL auto_increment,
  `information_group_id` int(11) unsigned NOT NULL default '0',
  `information_title` varchar(255) NOT NULL default '',
  `information_description` text NOT NULL,
  `parent_id` int(11) default NULL,
  `sort_order` tinyint(3) unsigned NOT NULL default '0',
  `visible` enum('1','0') NOT NULL default '1',
  `language_id` int(11) NOT NULL default '0',
  PRIMARY KEY  (`information_id`,`language_id`))
 ENGINE=MyISAM  DEFAULT CHARSET=latin1 );
-- 
-- Table structure for table `information_group`
-- 
DROP TABLE IF EXISTS `information_group`;
CREATE TABLE `information_group` (
  `information_group_id` int(11) NOT NULL auto_increment,
  `information_group_title` varchar(64) NOT NULL default '',
  `information_group_description` varchar(255) NOT NULL default '',
  `sort_order` int(5) default NULL,
  `visible` int(1) default '1',
  `locked` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`information_group_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 ;
vn5ltr is offline
Reply With Quote
View Public Profile
 
Old 05-15-2007, 09:57 PM Re: where is the error
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 984
Name: Jeremy Miller
Location: Reno, NV
What's the error? A lot of times for me it's just that you have to delete the ENGINE=MyISAM DEFAULT CHARSET=latin1 part for compatibility.

Posted at the same time as vn5ltr -- good catch!
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to where is the error
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12079 seconds with 12 queries