select count(列名) as 总数 from tabelA

解决方案 »

  1.   

    select coun(*)  from table

    ds.Table[0].count;
      

  2.   

    select count(*) as 总数 from tmptabelA
    也可以统计具体列的总行数
    select count(列名) as 总数 from tmptabelA
      

  3.   

    返回DataTable对象,通过dt.Rows.Count来判断有几条记录!
      

  4.   

    select count(1) from table
      

  5.   

    看你是想在哪判断了
    SQl:
    select count(*) as 总数 from tableCS:
    dataset.Table[0].Rows.count
    datatable.Rows.count
      

  6.   

    一.select coun(ID) from table 
    放到DataTable里面,
    dt.Rows[0][0]这里面就是总数。如果 select * from table
    dt.Rows.count就是总数。
      

  7.   


    select coun(*)  from table 
      

  8.   


    select coun(*)  from table 
      

  9.   


    想晕。社个问题应该好好学习SQL
      

  10.   

    select count(列名) as 总数 from tabelA
      

  11.   

    select count(*) from 表,一定正确