sql - Retrieval of Column name in Oracle -


how retrieve column name based on value given in wnat column_name in oracle

like dont know cloumn name know column value

i have tried in way

select column_name table_name column_value=xxxxx;    

try this:

sql> select table_name,         column_name,         :search_string search_string,         result   cols,         xmltable(('ora:view("'||table_name||'")/row/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')        columns result varchar2(10) path '.'        ) table_name in ('emp', 'dept') 

source


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -