March 15, 2012

WHERE clause on SQL Server “Text” data type

SELECT * FROM @Village WHERE [CastleType] like 'foo' 
 
SELECT * FROM [Village] WHERE PATINDEX('foo', [CastleType]) <> 0

No comments:

Post a Comment

How to type letters with accent

Very useful article https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/