Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select part of a field string

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
0
0
US
I wish to select the portion of a field preceding a given character...

In this case the portion of an email address preceding the '@'.

As the length varies, I an unsure how to proceed...

TIA,

-Allen M.
 
Found SUBSTRING_INDEX(`user`,'@',1) to do what I needed...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top