【发布时间】:2020-04-07 13:21:39
【问题描述】:
我正在spring data mongodb 中寻找一个看起来像这样的请求:
?#{ [2] == null ? { $where : 'true'} : { 'vehicle.immatriculation' : {'$regex' : {'$replaceAll':[2],'-',''}, $options : 'x'} } }"
是否可以提出这种类型的请求?我被卡住了,因为我找不到替换 SQL
版本
在SQL
SELECT colonne1, colonne2, REPLACE(colonne3, '-', '')
FROM table
【问题讨论】:
标签: mongodb spring-boot mongodb-query spring-data-mongodb