Home > Back-end >  How to select some records from a database, and then once saved to a hashmap, for example, rather th
How to select some records from a database, and then once saved to a hashmap, for example, rather th

Time:05-08

How to select some records from a database, and then once saved to a hashmap, for example, rather than a resultset traveled through a line into the hashmap?
thank you

CodePudding user response:

JDBC resultset is not something that directly with mybatis returns a map automatically map the amount in the near future

CodePudding user response:

Rarely used directly in Java JDBC database operation, and is too cumbersome to use, you can use a good to a third party library framework, such as dbUtils or use mybatis

CodePudding user response:

reference 1st floor biankobe24 response:
JDBC resultset is not something that directly with mybatis returns a map automatically map near the forehead

Thank you, can give a example of mybais? I've never used, what needs to be installed?
thank you

CodePudding user response:

Unless you write agreement, to give him a hug once! Orm framework, to the bottom, or JDBC, or a line of reading!

CodePudding user response:

Baidu mybatis framework is used, there are too many examples

CodePudding user response:

reference 5 floor biankobe24 reply:
baidu mybatis framework is used, there are too many examples

I UE write programs only, also can use mybatis?
Or don't want to use eclipse, to build a project?
thank you

CodePudding user response:

Turn the map directly baidu the resultset
  • Related