Unix Technical Forum

ERROR 1064 in mySQL 5.0.27

This is a discussion on ERROR 1064 in mySQL 5.0.27 within the MySQL forums, part of the Database Server Software category; --> Can anyone offer a reason as to why I am getting a 1064 syntax error with this in 5.0.27? ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 09:51 AM
avidfan
 
Posts: n/a
Default ERROR 1064 in mySQL 5.0.27

Can anyone offer a reason as to why I am getting a 1064 syntax error
with this in 5.0.27?

CREATE TABLE userlogin(
username VARCHAR2(128) PRIMARY KEY,
password VARCHAR2(128) NOT NULL,
email VARCHAR2(128) NOT NULL,
phone VARCHAR2(128) NOT NULL,
company VARCHAR2(128) NOT NULL,
passwordhint VARCHAR2(128),
passwordanswer VARCHAR2(128));

Thanks,

avidFan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 09:51 AM
Jerry Stuckle
 
Posts: n/a
Default Re: ERROR 1064 in mySQL 5.0.27

avidfan wrote:
> Can anyone offer a reason as to why I am getting a 1064 syntax error
> with this in 5.0.27?
>
> CREATE TABLE userlogin(
> username VARCHAR2(128) PRIMARY KEY,
> password VARCHAR2(128) NOT NULL,
> email VARCHAR2(128) NOT NULL,
> phone VARCHAR2(128) NOT NULL,
> company VARCHAR2(128) NOT NULL,
> passwordhint VARCHAR2(128),
> passwordanswer VARCHAR2(128));
>
> Thanks,
>
> avidFan
>


Password is a reserved word in MySQL.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 09:51 AM
avidfan
 
Posts: n/a
Default Re: ERROR 1064 in mySQL 5.0.27

On Sat, 30 Dec 2006 21:41:03 -0600, avidfan <noone@nowhere.com> wrote:

>Can anyone offer a reason as to why I am getting a 1064 syntax error
>with this in 5.0.27?
>
>CREATE TABLE userlogin(
> username VARCHAR2(128) PRIMARY KEY,
> password VARCHAR2(128) NOT NULL,
> email VARCHAR2(128) NOT NULL,
> phone VARCHAR2(128) NOT NULL,
> company VARCHAR2(128) NOT NULL,
> passwordhint VARCHAR2(128),
> passwordanswer VARCHAR2(128));
>
>Thanks,
>
>avidFan


Thanks for the tips.

I was able to get it to run by changing varchar2 to varchar.

hanks,

avidFan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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


All times are GMT. The time now is 02:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com