Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to validate email addresses in mysql?



How to validate email addresses in mysql?..

Answer / Kamal Kumar Maurya

To validate email addresses in MySQL, you can use a regular expression:

```sql
CREATE TABLE emails (
id INT AUTO_INCREMENT PRIMARY KEY,
email VARCHAR(255) CHECK (email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$')
);
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

What is the default password for mysql?

1 Answers  


Is mysqli secure?

1 Answers  


What is ISAM?

1 Answers  


What is the difference between a heap table and temporary table?

1 Answers  


What are the differences between char and varchar?

1 Answers  


In which language mysql has been written?

1 Answers  


In which year mysql created?

1 Answers  


What is longblob in mysql?

1 Answers  


How do you backup a database in mysql?

1 Answers  


How can you find out the version of the installed mysql?

2 Answers  


Difference between CHAR and VARCHAR?

1 Answers  


Why MySQL is used?

1 Answers  


Categories