Doing a LIKE comparison in a WHERE condition

Sam Power asked on September 8, 2014 09:51

Hi there,

Is it possible to do a LIKE check in a where condition. I'm thinking something like

MyValue LIKE '%[22]%'

Where it would match a MyValue string which contained '[22]'.

Thanks, Sam

Correct Answer

Sam Power answered on September 9, 2014 02:35

Yeah ok so what I suggested is exactly how you do it:

MyValue LIKE '%[22]%'

0 votesVote for this answer Unmark Correct answer

Recent Answers


Joshua Adams answered on September 8, 2014 15:12

Where are you trying to do this? In back end code or in a webpart property?

0 votesVote for this answer Mark as a Correct answer

Sam Power answered on September 9, 2014 01:21

In a web part property

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.