Answers for "like and is not like in sql"

SQL
2

sql is not like

SELECT * FROM emp
  WHERE name NOT LIKE 'a%'			-- not starting with a
  AND name NOT LIKE '%a'			-- not ending with a
  AND name NOT LIKE '%a%'			-- not containing  a
  AND upper(name) NOT LIKE '%A%'	-- not containing  a or A
Posted by: Guest on May-09-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