What are all the difference between Like and Contains ?

Answer Posted / santosh acharya

Select * from myTable where textField like '%Cats and Dogs%'

Select * from myTable where CONTAINS(textField, '"Cats and
Dogs"')

Both options will only return rows that contain the exact
phrase "Cats and Dogs", neither will return records that
contain either "Cats" or "Dogs" in them.

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to download oracle sql developer?

650


what are the types of join and explain each? : Sql dba

524


Can you upgrade sql express to full sql?

504


What is the difference between the conventional and direct path loader? : aql loader

639


What is an inner join sql?

536






what is denormalization. : Sql dba

534


How do you modify a trigger?

514


What are commit, rollback, and savepoint?

562


What are the syntax and use of the coalesce function?

543


Is left join and outer join same?

536


how to use case expression? : Sql dba

541


Does sql profiler affect performance?

547


how to include comments in sql statements? : Sql dba

533


define join and explain different type of joins? : Sql dba

536


What is the difference between an inner join and an outer join?

506