my dog learned polymorphism*
The moose likes JDBC and the fly likes what wrong with 1=1 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "what wrong with 1=1 ?" Watch "what wrong with 1=1 ?" New topic
Author

what wrong with 1=1 ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
good day to all ,

can i know why i having error when i use the following query in my java application with mysql db ?



i get the following error :
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

Originally posted by Nakata kokuyo:
good day to all ,

can i know why i having error when i use the following query in my java application with mysql db ?
...

...


You forgot the AND between two where clauses.

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: what wrong with 1=1 ?