[GENERAL] coalesce and nvl question

2004-06-23 Thread Simon Windsor
Hi Is there a standard postgres method of replacing empty strings. In Oracle, nvl handles nulls and empty strings, as does ifnull() in MySQL, but with postgres coalesce only handles null strings. If, not is the best solution to create a plpgsql function, ie CREATE FUNCTION isEmpty (character

Re: [GENERAL] coalesce and nvl question

2004-06-23 Thread Mike Mascari
Simon Windsor wrote: Hi Is there a standard postgres method of replacing empty strings. In Oracle, nvl handles nulls and empty strings, as does ifnull() in MySQL, but with postgres coalesce only handles null strings. If, not is the best solution to create a plpgsql function, ie CREATE FUNCTION

Re: [GENERAL] coalesce and nvl question

2004-06-23 Thread Simon Windsor
Hi I understand that null and '' are different, and MySQL and Oracle functions are confusing, but my question was not about replacing NULL but replacing Empty strings. These are handled in MySQL/Oracle by the same functions that do NULL checks. Is there a standard function in Postgres that

Re: [GENERAL] coalesce and nvl question

2004-06-23 Thread Doug McNaught
Simon Windsor [EMAIL PROTECTED] writes: Hi I understand that null and '' are different, and MySQL and Oracle functions are confusing, but my question was not about replacing NULL but replacing Empty strings. These are handled in MySQL/Oracle by the same functions that do NULL checks. Is