使用重载的Connection.prepareStatement(sql,flag)来生成PreparedStatement对象。
通过PreparedStatement.getGeneratedKeys()获取包含了新生成的主键的ResultSet对象(只有一列Generated_Key)。
使用重载的Connection.prepareStatement(sql,flag)来生成PreparedStatement对象。
通过PreparedStatement.getGeneratedKeys()获取包含了新生成的主键的ResultSet对象(只有一列Generated_Key)。