Adsense
Popular Posts
- Code update from PHP 7.4 to PHP 8.1 - PhpSpreadsheet
- MySQL workbench -"Could not decrypt password cache"
- Code update from PHP 7.4 to PHP 8.1 - Worksheet/Iterator.php
- Rendering HTML tags inside textarea
- axios handle blob type data
- Unix Utils and wget in Windows
- increase mysql query speed
- Setup vi syntax for PHP
- Get WAMP running on EC2
- add comment to table columns in phpMyAdmin
Thursday, October 16, 2014
MySql, find email address
Find email address end of @sfu.ca (table mail, column email_add)
trim(mail.email_addr) like '%@sfu.ca'
Without containing . in id part:
trim(mail.email_addr) not like '%\.%@sfu.ca'
Extract id part of email address, ie. the string before @sfu.ca
LEFT(mail.EMAIL_ADDR, LOCATE('@', mail.EMAIL_ADDR) - 1)
Labels:
MySQL
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment