MySQL - Regular expression pattern condition: REGEXP in MySQL

Regular expression pattern condition: REGEXP in MySQL

REGEXP is used to match a string against a specified pattern. There are different operators used to match patterns.

1. ^ is used to match beginning of the string.
2. $ is used to match end of the string.
3. * is used to match any character of the string.
4. A* Match any sequence of zero or more A characters.

Example:
SELECT 'sample' REGEXP '^s.*$';
Returns 1.
MySQL - Explain CASE Expression in MySQL with syntax
Explain CASE Expression in MySQL with syntax - CASE statement is a conditional expression. It is used to execute specific statements when some search condition evaluates to TRUE......
MySQL - TIMESTAMP data type in MySQL
TIMESTAMP data type in MySQL - A TIMESTAMP data type allows you to record a date and time like DATETIME data.....
MySQL - What is a User Account and Predefined User Accounts in MySQL?
What is a User Account and Predefined User Accounts in MySQL? - A user account in MySQL is assigned a username and password to access MySQL databases......
Post your comment