MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 1st, 2000, 07:57 PM
shaba shaba is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: -
Posts: 1 shaba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to shaba
Hello!

I am a mysql newbie here. I was working with a particular database and created two tables with no problems. then, for apparently no reason, i am not able to create a new table. here is the syntax i am using:


CREATE TABLE Tables (Table_ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT);

but then i get a error 1064 and it says i have an error in my SQL syntax.

this is liquifying my brain. please help me!!

Shaheeb

Reply With Quote
  #2  
Old August 2nd, 2000, 05:35 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9

Sorry to hear about your brain shabba - this is probably due to the fact that you have a primary key defined
this example creates a table called persons with a primary key and a column called name

CREATE TABLE persons (
id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
name CHAR(60) NOT NULL,
PRIMARY KEY (id)
);

Hope this helps

Reply With Quote
  #3  
Old August 7th, 2000, 05:43 PM
debak debak is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 3 debak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CREATE TABLE Tables (
Table_ID INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (Table_ID ));

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Error has me chewing my hair


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway