On Thu, Mar 09, 2006 at 16:13:47 -0500,
David Gaudine <davidg(at)alcor(dot)concordia(dot)ca> wrote:
> Is there a function that will convert a numeric string to a number,
> returning zero if the string is empty?
You can use to_number to convert a string to a number. You can combine
that with a case statement to only convert strings that look like a number
and return zero for strings that don't look like a number.
In response to
pgsql-novice by date
|Next:||From: 王宝兵||Date: 2006-03-10 06:39:36|
|Subject: Re: Where Can I Find The Code Segment For WAL Control?|
|Previous:||From: David Gaudine||Date: 2006-03-09 21:13:47|
|Subject: Function to convert numeric string to number in version 8.0|