हिंदी

What will be the output of the query? SELECT * FROM products WHERE product_name LIKE 'App%'; - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

What will be the output of the query? 

SELECT * FROM products WHERE product_name LIKE 
'App%';

विकल्प

  • Details of all products whose names start with 'App'.

  • Details of all products whose names end with 'App'.

  • Names of all products whose names start with 'App'.

  • Names of all products whose names end with 'App'.

MCQ

उत्तर

Details of all products whose names start with 'App'.

Explanation:

The LIKE operator in SQL searches for a pattern in a column. The % symbol serves as a wildcard, matching zero or more characters. 'App%' indicates that the product name must begin with "App" and may be followed by any sequence of characters (or none). 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×