LIKE operator
suggest changeSyntax
- Wild Card with % : SELECT * FROM [table] WHERE [column_name] Like ‘%Value%’
Wild Card with _ : SELECT * FROM [table] WHERE [column_name] Like ‘V_n%’
Character list (SQL Server, not standard SQL): SELECT * FROM [table] WHERE [column_name] LIKE ‘V[abc]n%’
Remarks
A LIKE condition searches for column values that match a pattern. Standard patterns use these two wildcard characters:
- % (Percentage Symbol) - Used for representing zero or more characters
- _ (Underscore) - Used for representing a single character
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents