The problem is probably more related to the invalid SQL syntax (it's just
LIKE, not LIKE =) then to anything non-standard in the statement format. I
would try first with %, not *, since the driver may change it for you (I'm
not sure on this one). If you don't get results back, just try * instead.

Mark

-----Original Message-----
From: Murphy, Chris (OTS-EDH) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: select..where like=?


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

===========================================================================
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