1
I have a Mysql table where I store the years I took from a register, but I am creating a search where the user selects from one date to another. In Mysql I did so:
SELECT * FROM tabela WHERE AnoEmpresa BETWEEN 1970 and 2014;
Only that it does not return anything, even having data within these dates.
What is the type of column
AnoEmpresa
?– Sergio
CHAR...I didn’t even touch it. If I convert to YEAR, I lose the registered information?
– user24136
I converted from CHAR to YEAR and it worked... thank you!
– user24136