利用Statement接口实现数据表的更新和查询操作
-取得Statement接口对象:Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
一个Connection 可以打开多个Statement
-数据更新操作:int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
返回int更新行数
-数据查询操作:ResultSet executeQuery(String sql) throws SQLException
返回ResultSet
编写数据库创建脚本,创建一个
原文:http://www.cnblogs.com/da-peng/p/5178246.html