SQL: Finding square brackets using LIKE in SQL Server T-SQL
A simple question came up on a forum the other day. The poster was trying to work out why he couldn’t find square brackets (i.e. [ ] ) using LIKE in T-SQL.
The trick is that to find the opening bracket, you need to enclose it in a pair of square brackets. But you can just find the closing one directly.
Let’s see an example. I’ll create a table and populate it:
2020-04-02

