i m storing a column value as '[ks' and why this query return nothing ???
select * from table where username like '['+'%'
i must need to search it in this way so how i can do this..........
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khan Abrar AhmedPosted Jun 12, 2014, 4:10 AM
DECLARE @table AS TABLE (cValue VARCHAR(64))
INSERT INTO @table
( cValue )
VALUES
( '[ks' -- cValue - varchar(64)
),
( 'ks' -- cValue - varchar(64)
)
select * from @table
select * from @table where cValue like '[[]%'