阅读背景:

左连接,总和和计数组

来源:互联网 

I have 3 tables: goods, store and pics. In the first table goods titles are stored. In the second - balance of goods in different stocks, in the third - links to goods pictures. So goods has one-to-many connection with store and pics. Now, I need to get a list of goods with sum of stock rests and count of pictures by one query. I did it like this:I have 3 tables: goods, store and pics. In the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: