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..........
SQL Query problem
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 12, 2014, 12:10 AM EDT
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 '[[]%'