我在我的表得到这个2行:Mysql的选择与FIND_IN_SET两个StringList的
1, 'Halo: Reach', 2010, ''fps','sci-fi'', '"The best game of the year".', 'Microsoft', 'Bungie', 'XBOX 360', 9.5, 'http://wuwb.com/wp/wp-content/uploads/2009/06/halo_reach.thumbnail.jpg', '', ''
2, 'FIFA 11', 2010, 'sport,soccer', '"The best soccer game ever"', 'EA', 'EA', 'PC, XBOX 360, PS3', 10, 'http://wuwb.com/wp/wp-content/uploads/2009/06/halo_reach.thumbnail.jpg', '', ''
而且在我的PHP脚本我有:
$Genres = "sci-fi,sport,soccer"; // After using the sumbit button
我需要做的顺序选择查询按类型划分,所以国际足联11将首先和光环:达到第二。所以我尝试使用find_in_set,但它不能使用两个字符串列表。
我想到的唯一选择是为每个类型的IN子句和一些字段的排序和限制做的事情,但我认为这是非常糟糕的方式来做到这一点。