Home > Enterprise >  SQL use equal and like condition together
SQL use equal and like condition together

Time:02-18

I need to assemble a sql query that only executes LIKE if it doesn't return value in equal

First used equal if there is no value use LIKE

SELECT * 
FROM cars 
WHERE name = 'Ferrari Basic' 
OR name LIKE '           
  • Related