因為本站的討論有1000字元的限制. 下次可以發新的問題,這樣會比較方便回答喔.
+------------+----------+----------+-----------------+ | idate | sumtype1...
SELECT a.idate , a.sumtype1 AS 'sumtype1' , a.sumtype2 AS...
INSERT INTO ithelp0812(idate, type, amount) VALUES ('2014-08-07', 1,...
--- 才能用以下語法 SELECT a.idate , a.Type1 AS 'Type(1)' , b.Typ...
不用SUM()的方式,要在Create Table時, 宣告 UNIQUE INDEX (idate, type), 確保每天每種型態,只會有一筆資料....
加上今天問的: 外部連線內部SQL SERVER http://ithelp.ithome.com.tw/question/10153097 放在一起看...
可以使用 version() 來查看版本.例如: select version(); +-----------+ | version() | +----...