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
 Transact-SQL (2000)
 wild card problem.....

Author  Topic 

wormz666
Posting Yak Master

110 Posts

Posted - 2008-10-25 : 07:53:00
declare @dummy varchar(20)
set @dummy = 'a'
Select * from where lname like ' + (@dummy) + %'

thank you in advance........

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-25 : 09:21:39
[code]declare @dummy varchar(20)
set @dummy = 'a'
Select * from where lname like @dummy + '%'
[/code]
Go to Top of Page
   

- Advertisement -