SQL交叉表

之前做貨品橫向展示時,有看到評論說用到交叉表。 公司最近需要給訂單表做一個數據彙總的功能,同事給到一個參考SQL select * from (select COUNT(1) as 已鎖定 from tbl_order where orderLock = 1) as A, (select COUNT(1) as 未鎖定 from tbl_order where orderLock = 0) as
相關文章
相關標籤/搜索