我有一张表,最多可以有5000.000行。此表中的一列仅用于查询,但该列只有5个可能值,目前我得到10.000行,根据解释计划,在该列上使用我的索引是没有意义的。 请问它曾经,或者我不应该与指数打扰 编辑:这是两个在此刻解释计划 Without index http://img706.imageshack.us/img706/1903/noindex.png 与 With forced index
下面的函数应该找出当我正在这个纸牌游戏中有两个重复的卡。 int duplicate (struct card hand[])
{
int i = 0, j = 0, duplicate = 0;
for (i = 0; i < 5; i++)
{
for (j = i + 1; j < 5; j++)
{
if (hand[