批踢踢實業坊
›
看板
Web_Design
關於我們
聯絡資訊
返回看板
作者
BILL0119 (BILL)
看板
Web_Design
標題
[問題] JSP從資料庫取得CHARACTER資料
時間
Wed Jun 3 11:20:42 2009
想請問板上的朋友 資料庫裡面有一欄位sex,型態是CHARACTER 要用哪種Resultset方式取得資料呢? 常用的好像有 getInt , getFloat , getString 這些好像都不行 char sex = rs.getxxx("sex"); 謝謝 --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.45.209.156
推
pm2001
:getString 之後自己轉換
06/03 11:31