Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Adding Variables

Author  Topic 

jgrant
Yak Posting Veteran

69 Posts

Posted - 2007-03-15 : 15:29:59
@counteft = (@countone + @counttwo)

Does this work in sql?

The Yak Village Idiot

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2007-03-15 : 15:31:40
Assuming compatable data types and such, sure..

You jsut neet to do a SET or SELECT to assign it.. Example:
SET @counteft = (@countone + @counttwo)

SELECT @counteft = (@countone + @counttwo)
Go to Top of Page
   

- Advertisement -