| getTime ( index ) | ใช้คืนค่าข้อมูลที่เป็นประเภท time ณ ตำแหน่งที่กำหนด ของแถวที่ชี้อยู่ |
|---|
method:getTime ( index )
return type:date
content:ใช้คืนค่าข้อมูลที่เป็นประเภท time ณ ตำแหน่งที่กำหนด ของแถวที่ชี้อยู่
example:Class.forName ( "sun.jdbc.odbc.JdbcOdbcDriver" ); Connection conn = DriverManager.getConnection ( "jdbc:odbc:Nutt" ); Statement stat = conn.createStatement ( ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY ); String sql = "SELECT firstname, lastname, sex, datecreate FROM person"; Result rs = stat.executeQuery ( sql ); date bDateCreate = rs.getTime ( 3 );