Adsense
Popular Posts
- Install APXS in Redhat Linux
- MySQL workbench -"Could not decrypt password cache"
- Transfer modules between sites
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- datatable order by nunmeric
- MySQL date created and date modified
- super(props) in React
- PHP, dump varailbes in a format way
- React: connect(mapStateToProps, mapDispatchToProps)
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