Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Wildcards inside TQuerys?!?

Status
Not open for further replies.

bside

Programmer
Dec 12, 2002
20
0
0
ES
Hi!
Does anybody knows how to use wildcards inside TQuery statements? I've used '..' but is not running.

I tried to use them in Database Explorer and '..' is running correctly, why?

Thank's
Dani
 
It may depend on the database you're running the TQuery SQL against but I think that the wildcard '%' should work.
Hope this helps.
Steve
 
Hi StevenK,

I use the default Paradox tables. The wildcard '%' doesnt run, neither '@',...

In my previous tip there was a mistake, Database Desktop the wildcard '..' runs perfectly, but in Database Explorer non of the different wildcards run!

Thanks,
Dani.

 
Are you using the 'LIKE' clause ?
i.e.
SELECT * FROM Table1
WHERE FieldName LIKE 'C%'
Is this where the issue lies ?
Steve
 
Yes! That WAS it. The Like expresion does not run equaly in Database Desktop!

I was using "=" instead of Like...

Ok, thanks, now it's running.

Dani.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top