Introduction - If you have any usage issues, please Google them yourself
First, build the database Dao class defines a class Dao, and as such adds 4 methods, namely constructor Dao, query methods executeQuery, executeUpdate update method and close the connection method close.