it is possible to return all null values and their column name in row wise in mysql ?

Hi its possible to return null values and their column names in row wise or to return not-null values and their column names in row wise in mysql
karthik80cAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
What do you mean.  Are you looking to a where column is null?
Or you want to do a select where the only thing you get us column,null.?
karthik80cAuthor Commented:
i have a maximum of 80 to 90 columns in my table in that i want to know what are the fields are empty in that particular row . so that next time we can update in the empty field. its possible?
arnoldCommented:
you would need to query for each row individually, or you have to convert the 80-90 column table into a three column table
orig
column1,column2,column3,column4
1,23,null or empty,null or empty
new table/representation (Pivot/unpivot)

newtable
IDcolumn (column1), name of column, value
1,column2,23
1,column3,null or empty
1,column4,null or empty
not sure what your table design is nor why you would be looking to fill an empty column in a non related row

in this case you will have a select * from newtable where value is null or length(value)=0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.