Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2895

Re: Fetch Column Name in BODS function

$
0
0

Hi Ankit,

 

This might help you, are you looking for this..?

 

It is possible to get column names of a table using data dictionary tables of a database and it can also be loaded into table as a first row.

It can done using either scripts or SQL transformation.

 

Using Script:

Script.PNG

     output:

Now you can use the global variable in query transformation with word_ext function to load it into separate columns in table.

 

Using SQL tranformation:

Use this SQL query in transformation : select COLUMN_NAME from all_tab_columns where table_name = 'table_name' and use pivot transformation to load this column as row in a table.

 

Let me you exact query, so that i will also try if i can...

 

 

Thanks,


Viewing all articles
Browse latest Browse all 2895

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>