I have a problem with my project when work with MSSQL
TableName: tbA
ID | COL
---+------
1 | 'abc'
2 | 'azc'
3 | 'xyz'
4 | '123'
Proceduce: pSearch(@input string)
I want to select tbA combines LIKE, IN and OR with ideal:
SELECT * FROM tbA a WHERE a.Z IN ('"a%c" OR "x%"')
Something like it, and maybe I have a solution that's full-text search but I don't want to use it.
And my expectation
ID | COL
---+------
1 | 'abc'
2 | 'azc'
3 | 'xyz'
I hope people give me a solution or something else, thanks all.