Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create table fails

Posted on 2002-05-24
4
Medium Priority
?
230 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
4 Comments
 
LVL 4

Accepted Solution

by:
lokeshv earned 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
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…
Suggested Courses

927 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