What are all the difference between Like and Contains ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Can we write dml inside a function in sql server?
Why triggers are used?
Are there any features that are decommissioned in 11g that are not present in 11g?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
In a table i have columns A,B,C and i have a composite index on columns A,B if so will the following query uses index or not? SELECT sal,name FROM <table_name> WHERE A=<value> AND B=<value> AND C=<value>;
Is it possible to read/write files to-and-from PL/SQL?
How do you change a value in sql?
what is meant by urlencode and urldocode? : Sql dba
What is normalisation and its types?
Are stored procedures compiled?
I am creating an index on Emp table Empno column,if u using this indexed column in ur SELECT stmt. where clause,then how do u know that yr index will be working or nor? Thanks Advance...
How to load data with sql*loader?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)