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

What are views in sql?

547


How do you know if a relationship is 2nf?

523


explain advantages of innodb over myisam. : Sql dba

650


What are the types of functions in sql?

569


Which sql statement is used to return only different values?

510






What are sql ddl commands?

552


How do you update a value in sql?

551


what is error ora-03113: end-of-file on communication channel?

607


What is a null value?

660


List and explain the different types of join clauses supported in ansi-standard sql?

827


What are different types of sql commands?

516


What is program debugging?

572


Is it possible for a table to have more than one foreign key?

586


Can we use loop in sql?

537


What are sql commands?

505