好的 感謝前輩指教
自己在其他地方找到解法了。SQL如下: SELECT PRODUCT_NO ,SUM(IIF(BUDGET_TYPE='Order',BUDGET_QTY,0...
我先自己自問自答 SELECT id, ( TableYear+Right('00'+Cast(TableMonth as varchar),2)...
https://stackoverflow.com/questions/5962117/is-there-a-way-to-call-a-stored-proc...