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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How Add Two String variable in sql?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-01-26 : 08:28:34
nilesh writes "Q .1)

Declare @strA as varchar(5)
Declare @strB as varchar(5)
Declare @strResult as varchar(10)
SET @strA = 'Well'
SET @strB = 'Done'
@strResult = @strA + @strB
Print @strResult

--can u help me i want answer as below


WellDone"

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-01-26 : 08:30:18
set @strResult = @strA + @strB
Print @strResult

Go with the flow & have fun! Else fight the flow
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-01-26 : 08:30:31
On the (highly unlikely) assumption this is NOT a homework question, I'll say this:

The answer is, literally, right in front of you. You will smack yourself in the head when you see it.
Go to Top of Page
   

- Advertisement -