Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Like vs =

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-10-08 : 09:32:13
Mike writes "I have a question about using “LIKE” or “=” in an SQL statement.

Which of the following is faster and why?

SELECT Field1, Field2
FROM Table1
WHERE Field LIKE ‘ABC’

Or

SELECT Field1, Field2
FROM Table1
WHERE Field = ‘ABC’"
   

- Advertisement -