我在形成一个后遗症时,有问题:
我的原住民问题是这样。
SELECT max(id),vehicleID FROM `vehicles` WHERE `vehicles`.`vsr_id`=342;
为此,我试图制定类似法律。
Vehicle.find({ where: { vsr_id : 342 }, order : [sequelize.fn( max , sequelize.col( id ))] }).success(function(vehicles){
console.log("Something i got" + vehicles)
})
It throwing an error : sequelize Object [object Object] has no method col and i refered from this URL: http://sequelizejs.com/docs/latest/models#block-34-line-8
我最后就没有任何法典。 请帮助我
FYI: Ignore semicolons