demoの後遺症
链接
var sequelize = require( 'secelize'); var secelize = new sacelize( 'nodejs'、 'root'、 ''、{host: '127.0.0.1'、port: '3306'、dierect: 'mysql'});查询
task.findall({limit:10、age:{gt:3}、order: 'id asc'}、{raw:true、logging:true、plain:false})。统计
task.count({where:{title: 'test_title_1'}}、{logging:false})。最大或最小
task.max( 'id')。
插入
task.build({title: 'test_title_3'、 'description': 'test_description_3'})。save()。 'test_description_4'})。修改
task.update({description: 'test_description_2000'}、{id: '2'})。删除
task.destroy({id: '4'})。感谢阅读、希望能帮助到大家、谢谢大家对本站的支持!