【发布时间】:2017-12-13 09:22:44
【问题描述】:
如何从我的 C# 程序中的 access 数据库中查看数据是否存在于数据库中,以及显示“数据库中存在单词”的消息框。
这是我目前所拥有的:
private void check_word_exists_Click(object sender, EventArgs e)
{
StopWordsDataSet.StopWordsRow wordsRow = stopWordsDataSet.StopWords.FindByword(query_word.Text);
if (query_word.Text = )
{
Console.WriteLine("Stop word exists");
}
else
{
Console.WriteLine("Stop word doesn't exists");
}
}
【问题讨论】:
-
你是唯一能回答这个问题的人,因为你知道
FindByword的实现。如果它找到一个单词,它会返回什么?做一个Console.WriteLine(wordsRow);,你可能知道。 -
谢谢你,我明白了
标签: c#