Advertisements
Advertisements
प्रश्न
Sonal needs to display name of teachers, who have "o" as the third character in their name. She wrote the following query.
Select name
From teacher
Where name ="$$o?";
But the query is not producing the result. Identify the problems.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
Problems:
=cannot perform pattern matching; useLIKE.- SQL wildcards are
%and_, not$$and?. - For
oas the third character, use two underscores beforeo, followed by%.
SELECT name
FROM teacher
WHERE name LIKE '__o%';
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
