Jason Joines <[EMAIL PROTECTED]> wrote:
> I have a table with an email field that contains values of the form
> [EMAIL PROTECTED] I need to populate a new field called uid with just the uid
> part of the email address. Is there any way of using select to just
> retrieve the part before the @ and insert it into the uid field?
Use SUBSTRING_INDEX() function:
http://www.mysql.com/doc/en/String_functions.html
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]