📜  sqldatareader 可以为 null - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:03.704000             🧑  作者: Mango

代码示例1
if (myReader.HasRows) //The key Word is **.HasRows**
{
    ltlAdditional.Text = "Contains data";
}
else
{   
    ltlAdditional.Text = "Is null Or Empty";
}