Solved

Create table fails

Posted on 2002-05-24
4
209 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 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now