If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > ...WHERE value LIKE '*';" -- just wont work?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-04-03, 06:18
Ului Ului is offline
Registered User
 
Join Date: Sep 2003
Location: Aotearoa
Posts: 5
Wink ...WHERE value LIKE '*';" -- just wont work?

How come, now this is a kicker, "...WHERE value LIKE '*';" -- just won't work? Has it gone completly mad? I just don't get it.

Hook your database to a ODBC SOURCE, won't allow that vital SQL Command, filter or (what ever pretty name we wanna call it), won't work.

Here is the strangest problem.

Setup a ADODB object, connection and what have you. To a DSN source kinda like the following
"DSN=MyDB;uid=admin;pwd=;database=DB"

Of course its registered with ODBC Data Sources through control panel.

then comes the big crunch.

"SELECT * FROM Jobs WHERE JobName LIKE 'D*';" or even * by itself.
No records get returned?

Anyone know how to solve this problem, or give a clue to aleast what the problem is caused by?
Reply With Quote
  #2 (permalink)  
Old 09-04-03, 06:27
towerbase towerbase is offline
Registered User
 
Join Date: Sep 2003
Posts: 1
Re: ...WHERE value LIKE '*';" -- just wont work?

I think that you should be using '%' instead of '*'. '%' is the SQL wild card for one or more characters. _ (underscore) is the wild card for a single character.

So your SQL statement should be

...WHERE value LIKE '%'



Quote:
Originally posted by Ului
How come, now this is a kicker, "...WHERE value LIKE '*';" -- just won't work? Has it gone completly mad? I just don't get it.

Hook your database to a ODBC SOURCE, won't allow that vital SQL Command, filter or (what ever pretty name we wanna call it), won't work.

Here is the strangest problem.

Setup a ADODB object, connection and what have you. To a DSN source kinda like the following
"DSN=MyDB;uid=admin;pwd=;database=DB"

Of course its registered with ODBC Data Sources through control panel.

then comes the big crunch.

"SELECT * FROM Jobs WHERE JobName LIKE 'D*';" or even * by itself.
No records get returned?

Anyone know how to solve this problem, or give a clue to aleast what the problem is caused by?
Reply With Quote
  #3 (permalink)  
Old 09-04-03, 06:53
Ului Ului is offline
Registered User
 
Join Date: Sep 2003
Location: Aotearoa
Posts: 5
Re: ...WHERE value LIKE '*';" -- just wont work?

That is amazing! I'm sure I tried that, out of despration, all the charactors on the keyboard. I just tried it and it works!

Thanks!!!!!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On