What command can I use to convert string to integer in mysql? for example:
I'm doing the following list of tables:
SELECT mov . * , prod.produto, prod.unidade, prod.icms, prod.ipi, prod.codigo
FROM movimentacao AS mov, produtos AS prod
WHERE mov.Codigo = prod.codigo
The prod.codigo
field has the value 0259
and the mov.Codigo
field is with 259
and at the time of the comparison they are not equal, I was wondering if you have any command that converts the value of prod.codigo
for integer to get 259