I have a table in MySql
that has a field called Codigo
, of type varchar(20)
, this field in this case accepts codes that have zero
on the left and codes that do not have zero
on the left.
Example:
Códigos 000123 e 321
When I do the SELECT this way:
SELECT * FROM Codigos WHERE Codigo LIKE '123'
It does not return me the code 000123
.
I would like to know how I can do this SELECT.