Board index » delphi » containing clause in local SQL

containing clause in local SQL

How do I set a query to retrieve records which a given field contains a
substring?

For instance,

SELECT * FROM mytable
WHERE name CONTAINING "smith"

results a capability not supported

--

- Gabriel Cherem <gabr...@projuris.com>

 

Re:containing clause in local SQL


Try

    WHERE name LIKE "%smith%"

Woody

Quote
Gabriel Cherem wrote in message <73ek3l$8...@forums.borland.com>...
>How do I set a query to retrieve records which a given field contains
a
>substring?

>For instance,

>SELECT * FROM mytable
>WHERE name CONTAINING "smith"

>results a capability not supported

>--

>- Gabriel Cherem <gabr...@projuris.com>

Re:containing clause in local SQL


SELECT * FROM MyTable
WHERE Name LIKE "%Smith%"

--
Bill Todd
(Sorry but TeamB cannot answer questions received via email)
(Remove nospam from my email address to contact me for any other reason)

Other Threads