sequelize模糊查询

    var Sequelize = require('sequelize);
    var Op = Sequelize.Op;
    User.findAll({
        where: {
            username: {
                [Op.like]: '%放%'
            }
        },
        offset: 0,
        limit: 10
    })

你可能感兴趣的:(sequelize模糊查询)