floater
Java Jedi
总版主
发贴: 3233
积分: 421
|
于 2005-01-20 00:26
not sure whether you can do this. I am not, and have never been, an DBA or SQL expert. Here is my logic: SQL is a tuple(row) based language, you are trying to make rows to columns, it's not likely. The only chance you have is that particular db may hae some functions for this.
If you are working with java, you may get the first one in SQL, and do it in java to get the second.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler, Refactoring - Improving the Design of Existing Code
|