ds.Tables[0].Rows.Count > 0 -- 是否有返回行 ds.Tables[0].Rows[0]["列名"].ToString(); string.IsNullOrEmpty( 参数)--判断是否为空或NULL