觉得有些怪, 这个main字段和B表一点关系没有吗? anyway, 下面的句子能实现.

mjs (臭豆腐-在痛苦中挣扎)
SELECT a.main, b.sub, Sum(b.amount) AS SumOfamount
FROM a, b
GROUP BY a.main, b.sub
2002-2-13 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: 有没有SQL高手啊(大概中手就行了),HELP

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论