Spring data jpa query interval value

the structure of the table is as follows:
ID,NAME,START,END
case data are as follows:
ID NAME START END
1 Zhang San 100200
2 Zhang San 600900
3 Li Si 210 460
.
want to realize that input 150 can query 1 Zhang San 100 200, input 460 query to 3 Li Si 210 460, and so on

Mar.04,2021
Menu