小编Tim*_*pov的帖子

HQL:将"insert into ... select"与固定参数值组合在一起

我有HQL声明:

insert into Item (ost, value, comments, startTime, endTime, proposedBy) 
select si.ost, si.value, si.comments, si.endTime, si.endTime, u 
from Item si, User u 
where si.ost = ? and u.id = ?
Run Code Online (Sandbox Code Playgroud)

如何修改为从其他列中使用参数的值oststartTimeselect

hibernate hql

6
推荐指数
1
解决办法
6845
查看次数

标签 统计

hibernate ×1

hql ×1