| | |
Problem with create script
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2005
Posts: 60
Reputation:
Solved Threads: 4
MySQL Syntax (Toggle Plain Text)
CREATE TABLE my_feature ( pk_id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, member_id INT(8) UNSIGNED NOT NULL, time_added DATETIME NOT NULL, personal_questions BOOL NULL, hits INTEGER UNSIGNED NULL, 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.
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.
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.
•
•
Join Date: Jul 2005
Posts: 60
Reputation:
Solved Threads: 4
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.
![]() |
Similar Threads
- Clean Previous Next Script for MySQL results (PHP)
- How to create script of a user/role (Oracle)
- problem in running perl script (Perl)
- simple ajax script problem (JavaScript / DHTML / AJAX)
- Problem in Korn shell script (Shell Scripting)
- I want to create a community script (PHP)
- script help (Windows NT / 2000 / XP)
Other Threads in the MySQL Forum
- Previous Thread: show status like '%qcache%';
- Next Thread: Desperate! mysql and phpmyadmin
| Thread Tools | Search this Thread |
Tag cloud for MySQL
1 agplv3 alfresco api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright court crm data database design developer development distinct drupal dui email enter enterprise error eudora facebook form foss gnu government gpl greenit groupware hiring hyperic images innerjoins insert ip joebrockmeier join keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange montywidenius multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opengovernment opensource operand oracle penelope php query referencedesign reorderingcolumns resultset saas search select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency update virtualization





