How do I modify the hundards of records based on my query result?

Posted by Nano HE on Stack Overflow See other posts from Stack Overflow or by Nano HE
Published on 2010-05-10T10:11:17Z Indexed on 2010/05/10 10:14 UTC
Read the original article Hit count: 168

Filed under:
|

Hi, I inserted some error record to my table, I can query via the sql below and found hundards of record marked with half.

SELECT * FROM `marathon`
WHERE gender = 'male' && distance = 'half';

How to write a SQL then I can modify the result rows distance from 'half' to 'full'.

Thank you.

© Stack Overflow or respective owner

Related posts about sql

Related posts about mysql