原型 public override object ExecuteScalar();
1.对于查询单个字段,不包括函数的 select 语句,例如 select a字段 from 表A ,如果不存在值,
对于SQLServer2008, 用 DBNull.Value == SqlCommand.ExecuteScalar()来判断;
对于SQLServer2000,用null==SqlCommand.ExecuteScalar()来判断;
原型 public override object ExecuteScalar();
1.对于查询单个字段,不包括函数的 select 语句,例如 select a字段 from 表A ,如果不存在值,
对于SQLServer2008, 用 DBNull.Value == SqlCommand.ExecuteScalar()来判断;
对于SQLServer2000,用null==SqlCommand.ExecuteScalar()来判断;