Re: [SQL] Don't want blank data

2001-01-25 Thread Oliver Elphick
David Olbersen wrote: >Greetings, > Is there a way to have postgresql always return a value for each row > requested? To be more clear, if I were using a Perl SQL hybrid I would wri >te > something like > > SELECT computer_ip or 'unset' FROM computers; > > So that if com

Re: [SQL] Don't want blank data

2001-01-25 Thread Stephan Szabo
On Thu, 25 Jan 2001, David Olbersen wrote: > Greetings, > Is there a way to have postgresql always return a value for each row > requested? To be more clear, if I were using a Perl SQL hybrid I would write > something like > > SELECT computer_ip or 'unset' FROM computers; > > So that

[SQL] Don't want blank data

2001-01-25 Thread David Olbersen
Greetings, Is there a way to have postgresql always return a value for each row requested? To be more clear, if I were using a Perl SQL hybrid I would write something like SELECT computer_ip or 'unset' FROM computers; So that if computers.computer_ip is NULL or '' I will get 'unset' ba