Sorry, my query is:
SELECT id FROM records WHERE Contains(owners, '"& Co"')
I'm using full-text indexing which makes queries run lightning fast. There's about 10 million records in the database so this is really the only efficient way to do it.
I tried your query and it works... but it took a little over 2 minutes to find about 9000 records. When I run my query, it takes 3 seconds to grab 55000 records... but it's getting everything with just "Co" instead of "& Co".
Main Topics
Browse All Topics





by: GreenGhostPosted on 2008-12-14 at 15:54:00ID: 23170473
That doesn't look like a query that would run at all. You need to specify a table, and there is no contains function...
You don't have to do anything to escape an ampersand, there is nothing special with that character.
Use the LIKE operator:
select id from SomeTable where owners like '%& Co%'