Answers for "contains and like in sql"

SQL
0

sql contains vs like

SELECT * FROM table WHERE Column LIKE '%test%';		-- can't use index
SELECT * FROM table WHERE CONTAINS(Column, 'test'); -- faster with full text index
Posted by: Guest on April-05-2021
4

sql where value like a or b

-- example
SELECT Id, ProductName, UnitPrice, Package
  FROM Product
 WHERE ProductName LIKE 'Cha_' OR ProductName LIKE 'Chan_'
Posted by: Guest on April-01-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language