Mysql
 sql >> Datenbank >  >> RDS >> Mysql

So verwenden Sie die Bedingung like in where in sequelize, node js

you can use Op operator in query
like :-

const Op = Sequelize.Op

{
  [Op.or]: [
    {
      fieldName: {
        [Op.like]: 'abc%'
      }
    },
    {
      fieldName: {
        [Op.like]: '%abc%'
      }
    }
  ]
}