Profile

outlier_lynn: (Default)
outlier_lynn

January 2015

S M T W T F S
    123
45678910
11121314151617
181920 21222324
25262728293031

Most Popular Tags

Expand Cut Tags

No cut tags

June 5th, 2005

outlier_lynn: (Default)
Sunday, June 5th, 2005 08:47 pm
I'm using the string concatenation that is built into PostgreSQL to return a single column called name from four columns called firstname nickname middlename and lastname.

It works just fine....as long as, in any given tuple, none of the four columns is NULL. It's something like "multiply by zero," I guess.

The query "select initcap(firstname || '|' || nickname || '|' || middlename || '|' || lastname) as name from person;" returns an empty column if (in my case) the nickname column is NULL. This is not the behavior I wanted at all!

Busy changing the default entry on the name columns....