In this table for row 2 name is empty
I want to fetch only those column that are not empty in row 2.
How can I check that name is fetched only if it is not empty otherwise not.
Do I need to fetch entire second row and then I can check which field is not empty
None of the query helps me.
I want something like this. select id,name,class from student where id = 2 and if name is empty don’t select that column
is there any way to do this