select codbarra, trim(leading 0 from codbarra) from movdiario where emissao between('2014-02-01') and ('2014-02-28') and tipo = 'V'; update movdiario set codbarra = trim(leading 0 from codbarra) where emissao >= '2014-02-01';