944,135 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 3091
  • MySQL RSS
Mar 15th, 2006
0

Problem with create script

Expand Post »
MySQL Syntax (Toggle Plain Text)
  1. CREATE TABLE my_feature (
  2. pk_id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
  3. member_id INT(8) UNSIGNED NOT NULL,
  4. time_added DATETIME NOT NULL,
  5. personal_questions BOOL NULL,
  6. hits INTEGER UNSIGNED NULL,
  7. PRIMARY KEY (pk_id));

When I put this into the MySQL Query Browser I get this error:

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 '' at line 7

This is kind of a pain in the ass and I cannot find anything that helps me.
Similar Threads
Reputation Points: 10
Solved Threads: 4
Junior Poster in Training
hinde is offline Offline
60 posts
since Jul 2005
Mar 15th, 2006
0

Re: Problem with create script

I am running MySQL version 3.23.58. I copied and pasted your CREATE statement into a query window and executed it. It created the table successfully.

I don't KNOW what the problem is for you, but you might try changing BOOL to TINYINT(1). In my version, BOOL is not valid, however, when I executed the statement, it automatically created the column as TINYINT(1) without any errors or warnings.
Reputation Points: 36
Solved Threads: 6
Posting Whiz
Troy is offline Offline
354 posts
since Jun 2005
Mar 15th, 2006
0

Re: Problem with create script

Yea basically I am running mysql on my pc for development purposes. I was running 4.1.26 (I think that was the version) but the server I am developing a feature for is running 5.1. Like an idiot, I couldn't leave well enough alone, upgraded, and for the past two days, I have been trying to get back up and running. I didn't figure out why it wasn't working, so I just took mysql query browser out of the equation and put it in the command line interpreter. I never had these problems with mssql. Now I am off to work out my foreign key constraint errors.
Reputation Points: 10
Solved Threads: 4
Junior Poster in Training
hinde is offline Offline
60 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: Exclusionary SELECT in SQL
Next Thread in MySQL Forum Timeline: Desperate! mysql and phpmyadmin





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC