• +91 9723535972
  • info@interviewmaterial.com

My SQL Interview Questions and Answers

Question - What is a LIKE statement? Explain % and _ in LIKE.

Answer -

While using filters in commands like SELECT, UPDATE, and DELETE, conditions might require a pattern to detect. LIKE is used to do just that. LIKE has two wildcard characters, namely % (percentage) and _ (underscore). Percentage(%) matches a string of characters, while underscore matches a single character. 

For example, %t will detect trees and tea both. However, _t will only detect one extra character, i.e., strings like ti or te. 

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners