| |

VerySource

 Forgot password?
 Register
Search
View: 621|Reply: 1

A little doubt about batch update data (Hibernate)

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-8 17:30:01
| Show all posts |Read mode
A data table userId course score

Where userId and course and dual primary key (this doesn't matter)

I want to update the score value of each piece of data in the table, and use a java function fun (score) that I wrote myself, that is, change the score value to fun (score)

Don't know how to do it

Please give pointers
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-6 21:15:01
| Show all posts
Start transactions and do batch processing
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list