I'm trying to do a select for an Oracle table but the output gives me only filelds values without fields name as in Informix.
Is there anyway to display both in output ?
For instance, the output will be :
For Guru,
yes, I'm using sqlplus but I don't have this variable "header" ...
For vbe,
I put pages to 0 so that's why filelds name were not displayed. But the problem is that if I don't put it to 0, it displays for me all fields which are not null and null and the output becomes hard to read.
So is there anyway to display only not null fields with their values with a select command ?
sqlplus does that anyway, whether or not you set pagesize to 0.
That is, sqlplus fetches all column values (NULL as well as NOT NULL) as specified in your SELECT <column_list>, irrespective of the pagesize setting.
Do you mean something like this ?
select x, y, z from t where x is not null and y is not null and z is not null;
This query will fetch all rows from table T that have NON NULL values for each column X, Y and Z.
Otherwise, please post a simple and reproducible example of what the problem is and what you are trying to accomplish.