Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6959475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:16:37+00:00 2026-05-27T15:16:37+00:00

I used the phpMyAdmin form to create a table, i.e. I filled in the

  • 0

I used the phpMyAdmin form to create a table, i.e. I filled in the fields and it generated the code. The code generated doesn’t work, but I can’t find the error. Any help would be appreciated.

#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 '( 1 ) NOT NULL DEFAULT  '0',

userEmail VARCHAR( 255 ) NOT NULL ,PRIMARY KEY (‘ at line 14

Here’s the code:

CREATE TABLE members (
userID INT( 9 ) NOT NULL AUTO_INCREMENT ,
userName VARCHAR( 15 ) NOT NULL ,
userPwd VARCHAR( 16 ) NOT NULL ,
userTitle VARCHAR( 4 ) NOT NULL ,
fName VARCHAR( 30 ) NOT NULL ,
lName VARCHAR( 30 ) NOT NULL ,
address VARCHAR( 255 ) NULL ,
dateOfBirth VARCHAR( 10 ) NULL ,
userJob VARCHAR( 15 ) NULL ,
regDate VARCHAR( 20 ) NOT NULL ,
accType CHAR( 1 ) NOT NULL DEFAULT  'F',
regCode VARCHAR( 255 ) NOT NULL ,
isActivated BOOL( 1 ) NOT NULL DEFAULT  '0',
userEmail VARCHAR( 255 ) NOT NULL ,
PRIMARY KEY (  userID ) ,
UNIQUE (userName ,userEmail)
) ENGINE = MYISAM

mysql ver 5.1 php ver 5.2.*

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:16:37+00:00Added an answer on May 27, 2026 at 3:16 pm

    Change
    isActivated BOOL( 1 ) NOT NULL DEFAULT '0',

    to

    isActivated BOOL NOT NULL DEFAULT '0',

    you can read about it more : here

    M indicates the maximum display width for integer types

    Bool does not have this so you can’t specify width. it’s always 1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I see the original MySQL used to create a view in phpMyAdmin
I've used MySQL (via PHPMyAdmin) a lot before but never really understood half of
I've only used phpMyAdmin but then I stumbled upon MySQL Workbench that looks promising.
When using phpMyAdmin or the MySQL GUI Tools, whenever I create an InnoDB table,
The VPS I was using used to have phpMyAdmin pre-installation option but removed it
I used the LINQ to SQL designer in Visual Studio to create an object
I used to work in a place where a common practice was to use
Well, may be this question is silly, but I couldn't find a way (except
For a while now, I've used phpMyAdmin to manage my local MySQL databases. One
I'm used to MySQL and PHPMyAdmin - I had to switch over to MSSQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.