sql server - What characters do LTRIM and RTRIM trim exactly? -


ltrim , rtrim are documented trim "blanks". characters considered "blank" exactly?

good question. although there many whitespace characters defined in unicode, space (0x0020) removed:

with characters (   select nchar( 0 ) character   union   select nchar( unicode( character ) + 1 )     characters     unicode( character ) < 65535 ),   charactermap (   select unicode( character ) [unicodepoint], character,     1 - len( ltrim( character ) ) [whitespace]     characters )   select unicodepoint, character, whitespace     charactermap     whitespace = 1     option ( maxrecursion 0 ); 

(the same applies rtrim.)


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -