| Author |
Getting a SQL Exception ?
|
lakmal padmakumara
Ranch Hand
Joined: Aug 08, 2009
Posts: 47
|
|
Hey Friends , I'm getting an error which is mentioned below when i run my programme !!
I know something wrong with my sql query .But Cannot figure it out !!!I have attached my sql database also .It does not contain any data .Only a Table .I have been checking this for nearly 7 hours using tutorials and other internet stuff.If you can please give me a help !!
My SQL Db is here
http://download734.mediafire.com/d9ccljmteydg/tnhixyhlzz2/localhost.sql
|
[Bsc in Computer Science and Engineering] [SCJP 80%][BCS certificate level]
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3670
|
|
As the exception says error is in your SQL:
After the "VALUES" clause you should have only one (opening) round bracket and one at the end (closing round bracket). It should not have any in between.
|
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
|
 |
lakmal padmakumara
Ranch Hand
Joined: Aug 08, 2009
Posts: 47
|
|
Hey Friends , I found it !!! From Java Ranch ,
The insert into code should be changed as
|
 |
 |
|
|
subject: Getting a SQL Exception ?
|
|
|