LIKE???

LIKE???

Post by Guerin Damie » Fri, 11 May 2001 16:48:15



Hi,

how find a word in a string???
Indeed for example, if i want find "TS" word, my SQL query is:

select * from table where field LIKE '%TS%';

However with this query, MySQL return fields which contains 'circuiTS'
too.I want find only the 'TS' word. I've try with a scpace caracter
before and afer 'TS', but if this word is at begining or at the end of
the field, nothing is returned...
do there be a special caracter in SQL to mean a limit word like perl or
php (\b)???

Thanks you very much


 
 
 

LIKE???

Post by BP Margoli » Sat, 12 May 2001 01:53:54


Guerin,

Check out the full text indexing abilities supported by SQL Server 7.0 /
2000.
You should also find that performance improves by using full text indexes.

Documentation on full text indexes can be found in the SQL Server Books
Online.

-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.


> Hi,

> how find a word in a string???
> Indeed for example, if i want find "TS" word, my SQL query is:

> select * from table where field LIKE '%TS%';

> However with this query, MySQL return fields which contains 'circuiTS'
> too.I want find only the 'TS' word. I've try with a scpace caracter
> before and afer 'TS', but if this word is at begining or at the end of
> the field, nothing is returned...
> do there be a special caracter in SQL to mean a limit word like perl or
> php (\b)???

> Thanks you very much




 
 
 

1. Query slow over liked server

Hi,

I have a problem with a query runing on a linked server.

When I execute the following on the target server the query takes about 2
secs
UPDATE TableName
SET MarkedForXfer = 0
WHERE MarkedForXfer = 1

When I execute the following on a linked server from another server the
query takes about 30 mins
UPDATE SQLLinkedServer.Database.dbo.TableName
SET MarkedForXfer = 0
WHERE MarkedForXfer = 1

Has anyone got any Ideas why this would be?

Thanks
Devron

2. Using ADO interfaces in IDL

3. Counting the number of satisfied LIKES in a SELECT statement

4. MSDE Questions

5. Liked Server to SYBASE

6. MSSQLServerOLAPServe service is not a valid Win32 application on Windows2000

7. Visual Liking in .Net using TREE VIEW control

8. Interesting Progress-related sites

9. Mulitiple LIKEs or IN?

10. Liked Server with insert trigers

11. Att: Bryant Likes - Virtual Directory stop to respond

12. function likes sprintf

13. Likes CAT and Sport Query