Microsoft
Software
Hardware
Network
Question : CHARINDEX whole word match
I'm building SQL stored procedure logic that utilizes the "CHARINDEX" function. I'm trying to make CHARINDEX return only whole word matches. Such as:
A) CHARINDEX('fart', greasyFart) = 0
B) CHARINDEX('fart', 'greasy Fart) = 8
C) CHARINDEX('fart', 'greasy fart') = 8
Is this possible or am I attempting something that business logic should work out before SQL?
Answer : CHARINDEX whole word match
its possible, you can also use the PATINDEX
Random Solutions
Quick One: Type Mismatch Error in Access 2007
Error 438 Obejct doesn't support property or method
windows xp recovery console Boot.ini /safeboot flag issues
TextBox and Validation Rule
Paid Time Off Accrual Formula
USB Flash error "Not Accessible. Incorrect Function."
java based website not loading
Realtime - What Events?
WHAT IS THE System32\Spools\Drivers\W3<wbr />2x86 folders purpose?
How to get a message box to Count records?