spring-boot - spring boot 动态 JPA 查询
问题描述
我有一些像下面这样的查询
@Query(value="select userid from user_info where name=?1 and phone=?2)
List<Integer> findUserBynameAndPhone(String userName, String userPhone);
这些查询是否会翻译为从 user_info 中选择用户 ID,其中 name=userName 和 phone=userPhone ..
如何理解这些具有 ?0 ?1 等的查询
解决方案
推荐阅读
- c++ - 需要帮助理解 sort() c++ 函数的奇怪行为
- python - Telethon 在 armv6 上被取消身份验证(但不是 armv7)
- node.js - 如何将结果分成几条消息?
- javascript - 如何从json数组中获取值
- mongodb - 从嵌套数组中分页嵌入对象
- facebook - Facebook 移交协议:“页面收件箱”不可用作辅助接收方
- django-rest-framework - 当显式调用序列化程序时,是否真的需要指定序列化程序类?
- libusb - 为什么在运行 Python 2 而不是 Python 3 时使用 LibUSB 会给出“无后端错误”?
- json - 获取整个 Google 表格工作表的 JSON 定义
- ios - 无法更改使用 xib 文件 Swift 创建的按钮中的字体