[問題] 關於查詢結果的數量

看板C_Sharp作者 (超脫歸心)時間18年前 (2008/02/09 18:22), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
請問當我使用 SqlDataReader dataReader = dataCommand.ExecuteReader(); 來Select資料之後 之後我能不能從dataReader上瞭解, 我一共select出幾筆資料呢? 因為我想要事先列出一個array, 用來塞select的結果阿……… -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.229.238.231

02/09 18:57, , 1F
用List<>去做就好了吧 不用煩惱長度問題...
02/09 18:57, 1F

02/10 18:05, , 2F
不然加入select count(),xxx,xxx from xxx,count() func
02/10 18:05, 2F
文章代碼(AID): #17hNxAlm (C_Sharp)