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.
update
marathonset distance = ‘full’
WHERE gender = ‘male’ and distance = ‘half’;
read http://dev.mysql.com/doc/refman/5.0/en/update.html (mysql update syntax)