sql - TSQL - how to find if a column has a space char(32)? -


TSQL - How will it know that there is a single place char (32) in the column?

Choose [some late] where the paradise ('', [some columns]) & gt; 0

does not work? Any ideas?

You have to start curl columns.

The CHAR column pad is up to the maximum length, with spaces on the right.

The RTRIM string that is less than the maximum length helps to avoid false positives while storing. Insert dropme values ​​('in a place with') where the droptable value ('nospaces') is inserted into the dropme values ​​(' space bar) '(' Space bar) Select the rtrim (col) from the table dropme (foo char (32)), from 'Dropme to foo,', '|', where foo is like '%%'


  nospaces i | Have | A | Space space | Select the bar (foo, '', '|') from dropme, where '%%' like rtrim (foo)  

  i | Is there. A | Space Location | Bar  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -