Results 1 to 3 of 3
Thread: Java DB Application Netbeans
- 09-12-2009, 08:44 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 49
- Rep Power
- 0
Java DB Application Netbeans
hey guys,
I am trying to create a basic Java DB application using netbeans and am using the Apache Derby Database so that I can easily embed the database into the application.
Anyways I have created a database, and am now trying to insert a few tables into it using the SQL command window,
I've tried the following
Create Table _AARDVARK ( Words varchar(200) not null , _AARDVARK numeric(4,2) not null , _ANIMAL numeric(4,2) not null , _ANT numeric(4,2) not null , _ANTEATER numeric(4,2) not null , _MUSIC numeric(4,2) not null , _NOSE numeric(4,2) not null , _UGLY numeric(4,2) not null , _DICTIONARY numeric(4,2) not null , _FUR numeric(4,2) not null , _SHELL numeric(4,2) not null , _ZOO numeric(4,2) not null , primary key (Words) ) ;
which generates the error :
Error code -1, SQL state 42X01: Syntax error: Encountered "_" at line 1, column 14.
I can't see what I'm doing wrong here in terms of the SQL (it works for a MySQL Database)
Any ideas ??
David
ps I'm using the built in driver
org.apache.derby.jdbc.ClientDriver
- 09-12-2009, 10:19 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Did you check in the Apache Derby manual to see if _ is allowed as first character of object names then?
- 09-12-2009, 04:01 PM #3
Member
- Join Date
- Apr 2009
- Posts
- 49
- Rep Power
- 0
Similar Threads
-
how to create Web application in Netbeans 6.7 ?
By vivekhegde85 in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-01-2009, 10:40 AM -
convert application to applet in netbeans
By dbashby in forum New To JavaReplies: 7Last Post: 04-18-2009, 03:49 AM -
Converting an Application to an Applet in NetBeans
By RaefWolfe in forum NetBeansReplies: 1Last Post: 03-27-2009, 05:47 PM -
connecting a java application to a DB in netbeans
By kulangotski in forum Advanced JavaReplies: 4Last Post: 03-22-2009, 09:58 AM -
Configuring Enterprise Application Servers In NetBeans IDE
By JavaForums in forum NetBeansReplies: 0Last Post: 07-30-2007, 11:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks