Posted - 03/05/2006 : 09:01:15
I was just wondering if its possible to store more than one field of data in a variable. For example suppose you have a table as follows:
name password Username
John komodo johno
Jay cazouys jayzy
peep sooky seaba
If i declare a variable @x and try to store all the passwords in that variable, all that happens is I get one item in the variable.
SELECT @x = password FROM Table1.....
Is there anyway around this, i.e. can u use arrays etc..