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

Re: Dynamic select inside storedprocedure

$
0
0

Hi Suman,

 

I guess you are working on replicating procedure, if am not wrong.

You can use a cursor to achieve it. You can open a cursor to read the columns even from a table TABLE_COLUMNS and then loop and concatenate them into a single string to form you insert or update query.

 

Regards,

Krishna Tangudu


Viewing all articles
Browse latest Browse all 8533

Trending Articles



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