我正在处理spring-boot和spring-boot数据有没有办法检查MongoDB的数据长度
@Query("SELECT * from branch where LENGTH(code) = 5")
发布于 2018-10-09 12:37:34
您可以使用@Query
@Query("{$expr:{$eq:[{$strLenCP: '$code' },5]}}")
https://stackoverflow.com/questions/52712539
相似问题