Since you are using MS, you have to change the % to *.  Not very standard,
sadly.

-Chris Murphy
[EMAIL PROTECTED]

-----Original Message-----
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 30, 2000 10:21 PM
To: [EMAIL PROTECTED]
Subject: select..where like=?


I am calling a bean in all my jsp files, now when I want to do search, I
called a fuction in the bean using a query :
String search ="select * from MP5_CONCEPT_DEPENDENCIES where description
like=?";
getSearchStmt =  myConn.prepareStatement(search);
getSearchStmt.setString(1,"%" + searchstring + "%");

when compiling to test the search function I got this error :
Exception in thread "main" ConceptBeanException: [Microsoft][ODBC Microsoft
Acce
ss Driver] Syntax error (missing operator) in query expression 'description
like
=?'.
        at ConceptDBean.searchConceptDBeans(ConceptDBean.java, Compiled
Code)
        at ConceptDBean.main(ConceptDBean.java, Compiled Code)
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to