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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using results with variable

Status
Not open for further replies.

ddeegan

Programmer
Jun 17, 2002
193
US
Hello

I am trying run a sql statement and place the result into a table.

Below is my attempt to put the result in a variable

I know I'm murdering the syntax - Am I close? Do I have the wrong concept?

declare @SEQ_return as varchar(100)
set @SEQ_return = select field from table -- returns 1 value
insert @SEQ_return into table

Thanks in advance
Dave


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top