in mysql table update 'a' record with 'b' and 'b' with 'a'

Posted by chetan on Stack Overflow See other posts from Stack Overflow or by chetan
Published on 2010-03-30T14:00:42Z Indexed on 2010/03/30 14:03 UTC
Read the original article Hit count: 182

Filed under:

IN my table there are two field one is name and other is gender I want to fire query so that every male is update with female and vice a versa.

I don't want to use procedure ,trigger or function.I have to do this only with simple query.

© Stack Overflow or respective owner

Related posts about mysql-query