Home > Back-end >  Java sum value return
Java sum value return

Time:01-09

Java how to return the sum calculated by numerical database, can the return value is not a ResultSet type, how to write ah, if line,

CodePudding user response:

Suggestions can use mybatis, hibernate these
When you query, AS in the field in a name
Query results if there is no encapsulated objects, can use hashmap meet first

CodePudding user response:

The method of the ResultSet with String or int, the return value written
The resultSet. GetPrice

CodePudding user response:

In sum (price) after adding the as "XXX"
  • Related