小编spy*_*t01的帖子

如何在Sequelize Postgres中使用小写函数

我试图使用小写函数在Sequelize中进行字符串搜索.我设法使用ilike做到这一点.我的问题是如何在这种情况下使用小写函数?

findAll使用ILIKE是如下:

Db.models.Person.findAll(where: {firstName: {$ilike: `somename`}});
Run Code Online (Sandbox Code Playgroud)

如何将其更改为 lower(firstname) = lower('somename');

postgresql node.js sequelize.js

12
推荐指数
2
解决办法
1万
查看次数

标签 统计

node.js ×1

postgresql ×1

sequelize.js ×1