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)
 like

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-09-07 : 09:04:09
sebi writes "how we can supply a parameter value for a like function"

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-09-07 : 09:09:07
this should help:

use Northwind
declare @like varchar(50)
set @like = 'hana%'
select *
from orders
where ShipName like @like

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

- Advertisement -