ID UserId G_NEWS L_NEWS R_NEWS
1 210 90 160 99
2 111 89 120 76
I want to transfer table like this(Each and every time i want one User's records only.),
Column_names Values
G_NEWS 90
L_NEWS 160
R_NEWS 99
By using following query i can retrieve the column names but how can i get that value of the specific user.
SELECT COLUMN_NAME
FROM ALL_TAB_COLUMNS
WHERE TABLE_NAME='TBL_NEWS';