我如何执行这样的sql查询?
SELECT column_name AS alias_name FROM table_name;
示例:我希望将列“ first”选择为“ firstname”
Table.findAll({ attributes: [id,"first"] }) .then(function(posts) { res.json(posts); })
Table.findAll({ attributes: ['id', ['first', 'firstName']] //id, first AS firstName }) .then(function(posts) { res.json(posts); });