O'Reilly logo

Tera-Tom's 1000 Page e-Book on Teradata Architecture and SQL, 2nd Edition by Tom Coffing, William Coffing

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 29 - Substrings and Positioning Functions

“It is not the position but the disposition.”

- J.E. Dinger

The CHARACTERS Command Counts Characters

images

 

The CHARACTERS command counts the number of characters. If 'Tom' was in the Employee_Table, his length would be 3.

The CHARACTERS Command - Spaces can Count too

images

 

 

If ' To m' was in the Employee_Table, his length would be 5. Yes, spaces do count as characters.

The CHARACTERS Command and Char(20) Data

 

 

The CHARACTERS command brings back a length of 20 every time for a Char(20) data type ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required