What are all the difference between Like and Contains ?

Answer Posted / rubyna

Like gives additional option of specifying exact
string/character position in the text. eg. if we want to
search all words having second letter 'a', we can use like,
but cannot use contain-

select * from emp where emp.name like '_a%'.

We don't have corresponding statement with contains.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

533


What is a temporal table?

497


What are the different types of constraints?

566


Can we call stored procedure in function?

552


What is the difference between sql and mysql?

558






How many row comparison operators are used while working with a subquery?

537


what is commit? : Sql dba

618


what is 'mysqlcheck'? : Sql dba

575


If the application is running very slow? At what points you need to go about the database in order to improve the performance?

565


What are expressions?

563


What is sql stand for?

576


What is sql and also describe types of sql statements?

567


Is not null in sql?

560


How do I kill a query in postgresql?

554


What is break?

620