SET @email="[email protected]";
SELECT email from `user` WHERE email LIKE CONCAT('%', @email, '%');
More Related Contents:
- Which DB technology is sued to solve the following search issue? [closed]
- ‘IF’ in ‘SELECT’ statement – choose output value based on column values
- How to select the nth row in a SQL database table?
- 1052: Column ‘id’ in field list is ambiguous
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- How to do a batch insert in MySQL
- Count the occurrences of DISTINCT values
- What’s faster, SELECT DISTINCT or GROUP BY in MySQL?
- Storing JSON in database vs. having a new column for each key
- How do I restore a dump file from mysqldump?
- Cast int to varchar
- MySQL Insert Into from one Database in another
- How do I get the ID of multiple inserted rows in MySQL?
- Import SQL file into mysql
- How to change the default port of mysql from 3306 to 3360
- Does mysql have the equivalent of Oracle’s “analytic functions”?
- How to skip certain database tables with mysqldump?
- “where 1=1” statement [duplicate]
- How to set a MySQL row to READ-ONLY?
- MySQL: LAST_INSERT_ID() returns 0
- Using reserved words in column names
- Calculating a Moving Average MySQL?
- Alternative to using LIMIT keyword in a SubQuery in MYSQL
- How to insert a file in MySQL database?
- Strings as Primary Keys in MYSQL Database [closed]
- MySQL : ERROR 1215 (HY000): Cannot add foreign key constraint
- FIND_IN_SET with multiple value [duplicate]
- What is the difference between SQL and MySQL? [closed]
- Optimistic locking in MySQL
- mySQL SELECT upcoming birthdays