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

Do we need to create index on primary key?

459


Can you join a table to itself?

530


Difference between table function and pipelined function?

574


What is the usage of when clause in trigger?

559


What is the command used to fetch first 5 characters of the string?

876






Which is better join or subquery?

597


explain the difference between myisam static and myisam dynamic. : Sql dba

505


how are mysql timestamps seen to a user? : Sql dba

553


Which is better varchar or nvarchar?

536


Is pl sql and postgresql same?

559


Is sql difficult?

736


how do you login to mysql using unix shell? : Sql dba

555


How do I find duplicates in two columns?

543


Explain what is sql*plus?

662


How do I truncate a sql log file?

525