如何在两列中显示列值?

时间:2015-06-12 23:36:04

标签: oracle-sqldeveloper

我正在使用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 |

1 个答案:

答案 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
  }
}