Aspire Faculty ID #14406 · Topic: COMPUTER SCIENCE INFORMATICS PRACTICES 2022 · Just now
COMPUTER SCIENCE INFORMATICS PRACTICES 2022

In SQL, LIKE condition allows you to use wildcard characters to perform matching. Which of the following is a valid wildcard character?

Solution

In SQL, the LIKE operator is used for pattern matching with wildcard characters:

  • % → Matches any sequence of characters (including zero characters).

  • _ → Matches exactly one character.

Example:

SELECT * FROM Students WHERE Name LIKE 'A%';

This will return all names starting with ‘A’ (like Amit, Anita, Arun, etc.).

Previous 10 Questions — COMPUTER SCIENCE INFORMATICS PRACTICES 2022

Nearest first

Next 10 Questions — COMPUTER SCIENCE INFORMATICS PRACTICES 2022

Ascending by ID
Ask Your Question or Put Your Review.

loading...