wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 2491
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what wrong with 1=1 ?
 
Similar Threads
Insert image into MySQL database
Problems with creating table in mysql through JSP
insert query for mysql convert() using the tomcat
javax.servlet. ServletException error
using MySql