Using following query you can find out all databases starting with “mysql”.
SHOW DATABASES LIKE ‘mysql%’;
MySQL Interview Questions and Answers
Using following query you can find out all databases starting with “mysql”.
SHOW DATABASES LIKE ‘mysql%’;
% corresponds to 0 or more characters, _ is exactly one character in the LIKE statement.
The = , <>, <=, <, >=, >,<<,>>, <=>, AND, OR or LIKE operators are used in column comparisons in SELECT statements.
LIKE and REGEXP operators are used to express with ^ and %.
Example:
SELECT * FROM table WHERE column REGEXP “^x”;
SELECT * FROM table WHERE column LIKE “%x”;