在环回中使用between,就像在mysql中一样

r9f1avp5  于 2021-06-25  发布在  Mysql
关注(0)|答案(1)|浏览(388)

有人知道是否可以使用loopback?中的“between”创建查询,类似于:

select ...
 where value BETWEEN column1 and column2

因为loopback文档解释了如何使用“between”,但是采用这种方式:

{where: {size: {between: [0,7]}}}, // where column between value and value

谢谢。

mxg2im7a

mxg2im7a1#

据此:https://loopback.io/doc/en/lb2/where-filter.html#node-原料药
用结构构造的环回中的where查询 {where: {property: {op: value}}} 他们说 value is a literal value 要实现您正在做的事情,最好执行本机sql:https://loopback.io/doc/en/lb2/executing-native-sql.html

相关问题