| updateBoolean ( index, boolean ) | ใช้ในการเตรียมข้อมูลประเภท boolean ณ ตำแหน่งที่กำหนด ของแถวที่ชี้อยู่ |
|---|
method:updateBoolean ( index, boolean )
return type:void
content:ใช้ในการเตรียมข้อมูลประเภท boolean ณ ตำแหน่งที่กำหนด ของแถวที่ชี้อยู่
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 sex FROM person WHERE id = 1"; Result rs = stat.executeQuery ( sql ); rs.updateBoolean ( 0, true ); rs.updateRow ( );