select max(count_od_qty)
from (
select count(od.qty) as count_od_qty
from odetails od, order1 o
where od.ono = o.ono
group by o.cno,od.pno
)
系統一直提示
Msg 102, Level 15, State 1, Line 7
Incorrect syntax near ')'.
我也剛開始學習,請大牛指點一二。
uj5u.com熱心網友回復:
需要加別名
select max(count_od_qty)
from (
select count(od.qty) as count_od_qty
from odetails od, order1 o
where od.ono = o.ono
group by o.cno,od.pno
) a
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/152412.html
標籤:基礎類
上一篇:新手求大神指導
下一篇:撰寫SQL資料庫代碼
