 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
jawad bokhari via JavaKB. Guest
|
Posted: Fri Feb 11, 2005 8:48 pm Post subject: Like Query not working with MS Access using JDBC-ODBC |
|
|
Hi,
I am having a strange problem here.
Following is the query that I am trying to execute from my java program
using JDBC-ODBC bridge.
SELECT DestId FROM tblRates WHERE '213424' like Perfix+'*'
Query runs with no errors but doesn't give me any result :(
But it return proper results when executed from MS Access Query builder.
I am not sure if it's the problem of the odbc bridge I am using or if it's
something else.
Thanks,
Jawad
--
Message posted via http://www.javakb.com
|
|
| Back to top |
|
 |
Lee Fesperman Guest
|
Posted: Fri Feb 11, 2005 10:19 pm Post subject: Re: Like Query not working with MS Access using JDBC-ODBC |
|
|
jawad bokhari via JavaKB.com wrote:
| Quote: |
Hi,
I am having a strange problem here.
Following is the query that I am trying to execute from my java program
using JDBC-ODBC bridge.
SELECT DestId FROM tblRates WHERE '213424' like Perfix+'*'
Query runs with no errors but doesn't give me any result :(
But it return proper results when executed from MS Access Query builder.
I am not sure if it's the problem of the odbc bridge I am using or if it's
something else.
|
Have you tried '%' as the wildcard instead of '*'? I think Access requires the standard
form when going through its ODBC driver.
--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|