I have a property website that allows users to search for properties and select a price range. If the user selects a price range between $170,000 and $180,000, they will also get results that are $1,700, $1,800 and $1,800,000.
Now, I update the database daily using LOAD DATA INFILE, which changes all of the data types in MySQL to mediumtext. That is what is causing the problem. If I change the type to INT, everything works great.
Does anyone have a way to make this work while keeping the type as mediumtext or does anyone have any recommendations on other ways to update the database that will not change the data type?
Thanks in advance.