Código:
update NOMBRETABLA set cantidad='5' where Nombre='A'
update NOMBRETABLA set cantidad='9' where Nombre='B'
update NOMBRETABLA set cantidad='7' where Nombre='C'
con updatesde ese estilo debe poder hacer lo que quiere hacer
Avisa si el funciono
suerte