@Modifying
@Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRES_NEW)
@Query(value = "update student set examTime =
CONCAT(left(examTime,10),'00:00:00') where examTime not like '%:%'",nativeQuery = true)
void updateStartTime();
使用@Query注解进行更新操作注意事项(报错: ERROR - org.springframework.dao.InvalidDataAccessApiUsageException: Executi
最新推荐文章于 2024-04-08 09:33:10 发布