I'm a new to SQL so, can you please help me in figuring out how to get a key-value pair from a SQL for example : Table A
A(PK) B(INT) C D
------ ------- ------- --------
1 X Y Z
2 A B C
I want the output in the form
A = 1
B = X
C = Y
D = Z
i tried
SELECT A,B,C,D from tableA ;
But it only prints in the form 1 X Y Z So, can you please help me ?