判断数据库中没记录的语句? datareader:if (da.Read()){//有记录}dataset:if (ds.Tables["tablename"].Rows != null){//有记录} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sqlcommand方法CommandText = "select count(*) as NumberOfRegions from region";Int count = (int) ExecuteScalar();//count为记录的个数 if (!da.Read()){//无记录}dataset:if (ds.Tables["tablename"].Rows = null){//无记录} select count(*)as total from 表 Where 条件 frame高度问题。 除了表单提交,还有没有别的方式提交数据到后台? 已知变量a,怎么从表中字段A里找出与它最近的两个数? 请问这是啥问题? 服务器 500错误. 有解决办法吗? 100分求助. DataTable如何缓存图片 关于HtmlInputFile控件 操作Excel问题 求ERP系统开发教程资料 求asp.net空间...,要求有一定的信誉度!! 初学者的愚蠢的问题,关于ASP.Net的结构。 请问ASP和ASP.NET之间Cookie究竟能不能共享? .net里面是不是不能像asp里那样嵌入语句?
CommandText = "select count(*) as NumberOfRegions from region";
Int count = (int) ExecuteScalar();//count为记录的个数
{
//无记录
}dataset:
if (ds.Tables["tablename"].Rows = null)
{
//无记录
}