If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Code error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-06, 10:49
Dron31 Dron31 is offline
Registered User
 
Join Date: Sep 2006
Posts: 1
Code error

I get an 1064 error when I use the following code:


CREATE TABLE `record` (
`record_id` int(11) NOT NULL auto_increment,
`record_date` date NOT NULL,
`record` text NOT NULL,
PRIMARY KEY (`record_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;



Could someone please tell me what's wrong and how to fix it?
Reply With Quote
  #2 (permalink)  
Old 09-21-06, 10:56
felixg felixg is offline
Registered User
 
Join Date: Apr 2005
Location: Lier, Belgium
Posts: 122
Quote:
Originally Posted by Dron31
I get an 1064 error when I use the following code:


CREATE TABLE `record` (
`record_id` int(11) NOT NULL auto_increment,
`record_date` date NOT NULL,
`record` text NOT NULL,
PRIMARY KEY (`record_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;



Could someone please tell me what's wrong and how to fix it?
There's nothing wrong with it. What MySQL version are you using?
What is the text of the error message?

--
felix
Reply With Quote
  #3 (permalink)  
Old 09-21-06, 11:25
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Quote:
Originally Posted by Dron31
I get an 1064 error when I use the following code:


CREATE TABLE `record` (
`record_id` int(11) NOT NULL auto_increment,
`record_date` date NOT NULL,
`record` text NOT NULL,
PRIMARY KEY (`record_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;



Could someone please tell me what's wrong and how to fix it?
The error 1064 occurs due to Mysql version mismatch because different
versions have different reserved words which if used by a previous version causes the error to occur.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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