Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Nth Row to local variable

$
0
0

Hi,

I am new this whole Database & SQL concept. And I come from a non IT background.

I am supposed to write a procedure that is supposed to query a particular table and assign each cell of a particular column/Columns to a local variable.

How do I go about doing this?

My table contains about 10 columns. I am supposed to assign values of 5 columns to respective local variable ( I need to create the same ). The columns contains about 2-4 values each.

Is there any way of using Array Concept?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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