| Author |
missing equal sign
|
Aniruddha Dhar
Greenhorn
Joined: Jul 22, 2012
Posts: 1
|
|
i am new at this and trying to understand different things.can't get this one right.please help....
thanks in advance...
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26218
|
|
Try putting a System.out.println() that writes out the sql and run it against the sql command line. This will tell you which part of the SQL has an error.
Also, consider using a Prepared Statement so you don't have so much string concatenation and the query is safer.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Bill Clar
Ranch Hand
Joined: Sep 21, 2006
Posts: 104
|
|
|
Is "c/o" a valid database field name?
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
It is if you enclose it properly. MS SQL Server and Access use [], MySQL uses ``, most others use "".
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: missing equal sign
|
|
|