我有 3 张桌子。
剧集,季节,Episode_Season
我有这样的看法
"CREATE VIEW episode_season_view AS SELECT * FROM episode
INNER JOIN episode_season ON episode.id = episode_season.episode_id
INNER JOIN season ON season.id = episode_season.season_id";
顺便说一句,它就像一个魅力......现在当我在 MysqlWorkbench 中运行这个查询时
"SELECT * FROM season_episode_view
WHERE first_aired > CURDATE() AND season_id = 600";
它返回正确的结果。但是当我这样做时,
R::getRow("SELECT * FROM season_episode_view
WHERE first_aired > ? AND season_id = ?", array(date('Y-m-d'), $season_id));
它返回 0 行...我不明白为什么?