0
A
回答
1
如果您需要您的結果列於單列中,您可以使用LISTAGG:
with emp(s_id, s_inv) as
(
select 1, 12 from dual union all
select 2, 12 from dual union all
select 3, 12 from dual union all
select 4, 12 from dual union all
select 5, 12 from dual
)
select listagg(s_id, ' ') within group (order by s_id)
from emp
where s_inv = 12
如果您需要在同一行建立多列,你應該先確定有多少列將你的結果有
相關問題
- 1. 的結果獲得結果從動態SQL在Oracle中
- 2. 無法獲得ISODate格式結果
- 3. 任何獲得簡單計算表達式結果的方法?
- 4. 以更簡單的方式獲得結果
- 5. 從服務器獲得更新結果的優化方式
- 6. 如何以編程方式獲得java jstat -gcutil結果
- 7. 如何以編程方式獲得測試結果?
- 8. 臥式垂直手風琴
- 9. 臥式使用動畫RecyclerView
- 10. 臥式空體溢出
- 11. Titanium Android臥式和立式滾動
- 12. 如何在wordpress中以明智的方式獲得搜索結果
- 13. 結合輸入組和形式,集團在引導3臥式成形
- 14. 得到一個WPF RichTextBox的文本上畫一個臥式線
- 15. 使用PHP的臥式日曆
- 16. jQuery的臥式圖像滑蓋lazyload
- 17. StackPanel的臥式包裝文字WP 8.1
- 18. iOS6的UICollecionViewFlowLayout - 臥式佈局 - 細胞
- 19. 臥式wordpress菜單中心的空間
- 20. Pythonic方式來獲得`package.module.Class`
- 21. MySQL的最好的方式得到結果
- 22. 最優雅,最有效的方式來獲得地圖結果從JPA加入
- 23. PHP正則表達式這是獲得這個結果的最快方法嗎?
- 24. svnkit:如何以編程方式獲得'svn status'的確切結果爲String?
- 25. 如何獲得布爾XPath表達式的結果(例如'false')?
- 26. 如何獲得正常格式的cakephp查詢結果?
- 27. 如何使用jquery獲得打印PDF格式的結果
- 28. 如何獲得搜索模式的相反結果?
- 29. 如何獲得YQL的格式化視圖作爲結果?
- 30. AWS CloudSearch - 獲得一個JSON格式的搜索結果
Upvoted因爲這正確地給出答案的問題(其中OP不適合行問是列還是任何數據要轉)。如果可能的話,我會再次贊成清晰的工作代碼示例。 – Lunc