mysql - 如何在Spring Boot中实现MYSQL的case功能

标签 mysql spring-boot

我是新手。 谁能帮我在 Spring Boot 中实现 MYSQL Case 语句。 就像使用 findBy 一样。

最佳答案

我不知道您到底在寻找什么,但我认为您需要 JPA 查询注释。

https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.query-methods.details

关于mysql - 如何在Spring Boot中实现MYSQL的case功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48496488/

相关文章:

java - 为什么 Spring 中的 RestTemplate 必须传递参数名称

mysql - 在 Laravel 的 Eloquent 或普通 SQL 中计数点

mysql - 未回复的消息 - MYSQL

在 Visual Studio 2015 中停止调试 session 后,MySQL 连接保持打开状态

mysql:将两条记录合并为一条

java - Spring中的包结构,Entity vs Model vs Controller

spring-boot - Spring @Scheduled 方法无法使用 Spring Data JPA 保存

spring - 什么是与Spring Data Elasticsearch 3.1.4一起使用的正确Elasticsearch版本

Mysql变长十进制

java - 带有 Morphia 的 Spring Boot 配置?