Solved

Create table fails

Posted on 2002-05-24
4
222 Views
Last Modified: 2006-11-17
Hello -

Trying to create a simple table in MySql (using the command prompt).

CREATE TABLE products (
ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
products TEXT,
desc TEXT,
sku TEXT,
productDate DATE NOT NULL
);

But I get an error at line 3 (erro 1064). What's wrong? And is there a GUI interface I can use to add tables (with fields) and drop tables?

TIA-

RB
0
Comment
Question by:routerboy309
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Accepted Solution

by:
lokeshv earned 50 total points
ID: 7033954
"desc" is keyword in mysql ..you cant use it as column name


change it to somehting else...


hope this helps...

LK
0
 
LVL 7

Expert Comment

by:axis_img
ID: 7034010
[And is there a GUI interface I can use to add
tables (with fields) and drop tables?]

Yes. The most widely used GUI for mysql is PHPMyAdmin. You can find it here:

http://www.phpwizard.net/projects/phpMyAdmin/

It is fairly user-friendly. The documentation for phpmyadmin can be found here:

http://phpmyadmin.sourceforge.net/documentation/

Hope that helps...
Barry
0
 
LVL 5

Expert Comment

by:dkjariwala
ID: 7034106
Check out mysql manager. Its a standalone application.

It really shines when you want to relate different mysql tables.

JD
0
 

Author Comment

by:routerboy309
ID: 7034226
That did it!

Thanks-

RB
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question