select count(id) from table 返回值

select count(id) from table這條SQL語句做用你們都明白什麼做用了,原本一直認爲返回值爲一整形結果,可是試試勝於雄辯。 剛剛在寫一個jsp程序,數據庫操做使用了dbutils包,使用了select count(id) from table 這條語句計算table表中的記錄數,結果使用Integer接收,運行測試,報錯了java java.lang.ClassCastExc
相關文章
相關標籤/搜索