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')
Comments
Post a Comment