Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select column name

Status
Not open for further replies.

FumacII

Programmer
May 11, 2001
11
SE
Hi,

Does anyone know if there is any possibility to select an column name with an cell that contains a specific value?
I am using Oracle 8.0.

Something like:
Select columnname
from thisDatabaseName
where value = 0
and id = 1

I need to know which columns that contains the value 0 (False).

Thank you for any resonse,

/Fumac
 
Maybe
SELECT *
FROM thisDatabaseName
WHERE value = 0
AND id = 1

 
No not really, that wont return the column names.
But I´ve solved it in another way, I remade the table.

Thank you anyway!

/Fumac
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top