Search This Blog

Monday 15 December 2014

String Search with symbol in Sql?

Declare @p varchar(20)

set @p='> 2000'

declare @s varchar(2000)
set @s='select * from sntbl_user_profile where up_id ' + @p

print @s

Exec (@s)

No comments:

Post a Comment