Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想得到未来的游戏日期。字段game_date的格式为d/m/Y,数据类型为varchar。
我正在运行这个查询。数据库中有可用记录,但此查询未获取任何数据。请帮忙
询问
SELECT * FROM dx_scores WHERE t_name='Team 11' and username='joe@example.com' and STR_TO_DATE(game_date, '%d/%m/%Y' ) >= CURDATE();
请尝试此查询
SELECT * FROM dx_scores WHERE t_name='Team 11' and username='joe@example.com' and DATE(game_date, '%d/%m/%Y' ) >= DATE(CURDATE());