我正在使用SQL Developer,目前有一个这样的表:
PROD | SER_NUM | PROD_DESC
Xxxx | 255236 | 'BLK'
Yyyy | 785412 | 'RED'
Zzzz | 254861 | 'BLK'
Wwww | 985465 | 'RED'
我需要像这样显示:
PROD | BLK | RED |
Xxxx | 255236 | |
Yyyy | | 785412 |
Zzzz | 254861 | |
Wwww | | 985465 |
答案 0 :(得分:0)
试试这个:
For the first treeset in treesets do till all done:
dosomething(treeset)
if done(treeset) {
remove treeset from treesets
sort treesets
// now the next treeset to dosomething will be the first treeset in treesets since we change the sorting but I want to make sure the sorting is applied there
}
}