MySQL Forums
Forum List  »  New in 4.1: Subqueries

Transposing rows into colums
Posted by: akm mokaddim
Date: June 09, 2006 11:43AM

hi,
I enter the folowing query,
"select PARAM, VALUE FROM GLOBALS WHERE PARAM='A' OR PARAM='B' OR PARAM='C' OR PARAM='D' "
and the result is,

PARAM___________VALUE
A.................................10800
B.................................10
C.................................0
D.................................1

I need the result in a way like,


PARAM______A_________B______C______D
VALUE.............10800...........10............0............1


how can it possible ?
any idea ... .. ?

Options: ReplyQuote


Subject
Views
Written By
Posted
Transposing rows into colums
4072
June 09, 2006 11:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.