UPDATE prestaciones A set facturado=0,mesfacturado='' Where A.facturado=1 and A.nroobrasocial = and mesfacturado='-' .. 0