I am redoing the question because I did not get the desired result, I would like to do a select in the date field but the between is not working, I believe it is due to my date field being in VARCHAR format, I tested the code below:
("SELECT * FROM caixa WHERE data BETWEEN '01/05/2017' AND '31/05/2017'");
However, he selected all the records, not just the ones that dated between 05/05/2017 and 05/31/2017.