Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting multiple values into variables

Status
Not open for further replies.

pabowen

Programmer
Nov 6, 2002
95
US
I am trying to figure out how to use a select statement to populate multiple variables.

I am very familiar with how to populate one variable using select. ie.

Select xcode into Code from course;

But I would like to populate multiple codes, and have tried a statement such as this.

Select xcode into Code, xname into Name from Course;

But have so far been unsuccessful. Can anyone out there show me the light?

Thanks in advance,
Patrick
 
SELECT a,b,c INTO x,y,z FROM ABC.

Sharing the best from my side...

--Prashant--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top