Solved

error while runing table creation code

Posted on 2012-03-25
2
276 Views
Last Modified: 2012-03-25
Is there anythng wrong wid the following code-
stmt.execute("create table order(ORDER_INDEX INTEGER not null GENERATED ALWAYS AS IDENTITY CONSTRAINT orderno_pk primary key,ONAME VARCHAR(30),DESC VARCHAR(30),CUSTOMER VARCHAR(30),PHONE INTEGER,ORDERDATE VARCHAR(30),DELIVERYDATE VARCHAR(30),ADVANCE DECIMAL(20,2),BAL DECIMAL(20,2))");
i am getting the attached error..pls help..
run.txt
0
Comment
Question by:daydreamer6565
2 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37764433
'order' is a reserved word in MySQL and should not be used for table or column names.
0
 

Author Closing Comment

by:daydreamer6565
ID: 37764440
The table is created..Thanks ..
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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

757 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

17 Experts available now in Live!

Get 1:1 Help Now