美文网首页
joins;select;group的区别和用法

joins;select;group的区别和用法

作者: 程序萌 | 来源:发表于2017-05-10 14:28 被阅读0次

遇到的问题

数据库中用joins优化性能

解决方法

用joins来优化性能

查询的资料

数据库中的group by与rails中的group_by的区别及使用方法
mysql中的left join、right join、join

注意的问题

Emall.joins(:orders).select("emalls.id, emalls.name") 写法
取出电商表中有字段"emalls.id, emalls.name"的数据的订单

总结

相关文章

网友评论

      本文标题:joins;select;group的区别和用法

      本文链接:https://www.haomeiwen.com/subject/sfcgtxtx.html