Q1
True / FalseIn MySQL, the LIKE keyword is used to perform pattern matching in a SELECT statement.
The LIKE keyword is indeed used in MySQL to search for a specified pattern in a column.
Q2
True / FalseMySQL LIKE keyword can be used without wildcards (% or _) to match patterns.
The LIKE keyword must be used with wildcards (% or _) to match patterns. Without wildcards, it behaves like the = operator.
Q3
True / FalseIn MySQL, the wildcard character % in a LIKE pattern represents zero or more characters.
The % wildcard matches zero or more characters in a pattern search.
Q4
True / FalseMySQL LIKE keyword is case-sensitive by default.
MySQL LIKE keyword is case-insensitive by default unless the collation of the column is set to a case-sensitive collation.
Q5
True / FalseThe _ wildcard in MySQL LIKE pattern represents exactly one character.
The _ wildcard matches exactly one character in a pattern search.
Q6
True / FalseIn MySQL, you can use the LIKE keyword with numeric data types.
The LIKE keyword is primarily used with string data types. Using it with numeric types is not common and can lead to errors or unexpected results.
Q7
True / FalseIn MySQL, the pattern LIKE 'A%' will match any string that starts with the letter 'A' and has zero or more characters following it.
The pattern LIKE 'A%' matches any string starting with 'A' followed by zero or more characters.
Q8
True / FalseMySQL allows combining LIKE with NOT to exclude certain patterns.
You can use NOT LIKE to exclude rows that match a certain pattern.
Q9
True / FalseMySQL LIKE keyword supports regular expressions for more complex pattern matching.
The LIKE keyword does not support regular expressions. MySQL has a separate REGEXP operator for regular expression pattern matching.
Q10
True / FalseIn MySQL, using LIKE BINARY with the LIKE keyword makes the pattern match case-sensitive.
The LIKE BINARY keyword in MySQL forces the LIKE pattern match to be case-sensitive.