-3
爲什麼沒有從下面的代碼返回數據?
SELECT *
FROM (SELECT p_code, short_name,qty_stock
FROM sample_new.daily_stock)
PIVOT (sum(qty_stock) AS sum_quantity FOR (short_name) IN
(SELECT DISTINCT short_name FROM sample_new.daily_stock));
也許是因爲沒有數據返回?提供您正在查詢的內容的樣本。 – Takarii