使用nodejs sequelize进行mysql的数据库查询,只会只用它查询一张表,如果想要同时查询两张表达到如下效果
MYSQL
SELECT * FROM A,B WHERE A.name = B.name;
阿神2017-04-17 11:59:10
定義表格關聯關係,請參閱:http://docs.sequelizejs.com/en/latest/docs/associations/
關聯查詢,請參閱:http: //docs.sequelizejs.com/en/latest/docs/querying/#relations-associations
歷史版文件
v2.0 http://docs.sequelizejs.com/en/2.0/
v1.7 http://docs.sequelizejs.com/en/1.7.0/