我有快速查找這個代碼搜索問題:ABC = abc在C#中如何解決這個問題?
Tmp = "";
MAK = "";
DES = "";
Cmd.CommandType = CommandType.TableDirect;
Cmd.CommandText = "Ham";
Cmd.IndexName = "B";
Cmd.SetRange(DbRangeOptions.Match , new object[] { txtMa.Text }, null);
SqlCeDataReader read = Cmd.ExecuteReader();
while (read.Read())
{
Tmp = read[2].ToString();
MAK = read[0].ToString();
DES = read[1].ToString();
}
read.Dispose();
if (Tmp == "")
{
return false;
}
else
{
txtDes.Text = DES;
return true;
}
它做工精良 - 但問題是
當我搜索ABC
,當我搜索abc
我得到同樣的resault
之間如何分隔他們?
感謝的提前