In my JSP I use the following code to fetch data from the database:
select * from parks where parkArea = 'abc' AND parkType = 'abcd'
I can't write the statement to execute correctly in my JSP, this is what I've tried:
statement = con.prepareStatement("select * from parks ("WHERE parkArea like "abc"") + ("AND parkType = "abcd"")")
What am i doing wrong?