Jump to content

About Column Names


Prakash

Recommended Posts

Hi,I need ur help to resolve my issue.I'm using Oracle 9i.I've a table with 10 columns. Each column has 10 values (i.e., 10 records completely). In that, 5 columns have some null values. I want to retrieve the column names in which the records have the null values.Pls help me finding the query.Thanq in advance.Bye.

Link to comment
Share on other sites

Hi.. use following query: Query:select * from `table_name` where field1 is null or field2 is null or field3 is null or field4 is null or field5 is null Regards,Vijay-------------------------------------------------------------------

Hi,I need ur help to resolve my issue.I'm using Oracle 9i.I've a table with 10 columns. Each column has 10 values (i.e., 10 records completely). In that, 5 columns have some null values. I want to retrieve the column names in which the records have the null values.Pls help me finding the query.Thanq in advance.Bye.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...