【发布时间】:2020-03-18 05:10:21
【问题描述】:
从数据库中获取特定 Goal_name 的 Goal_id 的查询是什么假设一列是 Goal_id,另一列是 Goal_nameenter image description here。我希望它采用以下格式(本机查询)
@Query("Select a from UserEntity a where a.userId= :userId")
List<UserEntity> getUserById(@Param("userId") String userId);
我想在 Spring Boot 中使用它,我将从 UI 获取订单号,我想获取该订单号的相应订单 ID
【问题讨论】:
标签: mysql sql database spring-boot spring-data-jpa