2

如何使用 Sails.js 进行复杂的数据库查询,例如连接?

我使用命令行尝试了该generate方法,它很棒,我将它连接到我的 MySQL 数据库并且效果很好,但现在我需要了解的是如何执行复杂的SELECT语句。我在文档中找不到它。

4

1 回答 1

3

For complicated queries refer to this answer by particlebanana, one of Sails.js core contributors.

As an alternative to perform joins, you can use the associations branch.

于 2013-11-24T08:57:22.940 回答