### 4.ResultSet接口中的注意事项
1) 如果光标在第一行之前,使用 rs.getXX()获取列值,报错:Before start of result set
2) 如果光标在最后一行之后,使用 rs.getXX()获取列值,报错:After end of result set
3) 使用完毕以后要关闭结果集 ResultSet,再关闭 Statement,再关闭 Connection
### 5.小试牛刀
- 查询student表中所有学员的信息
```
import java.sql.*;
public class GetMsgFromStudent {