Advertisements
Advertisements
प्रश्न
Ms. Ravina is using a table 'customer' with custno, name, address and phonenumber. She needs to display name of the customers, whose name start with letter 'S'. She wrote the following command, which did not give the result.
Select * from customer where name="S%";
Help Ms. Ravina to run the query by removing the errors and write the correct query.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
The LIKE operator must be used instead of = for pattern matching. The % wildcard represents zero or more characters.
SELECT *
FROM customer
WHERE name LIKE 'S%';
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
