Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Isnumeric question
On 2003.09.22 20:15, Teresita Castro wrote:
> Hi!!
> I want to made something like this ina query
>
> select decode( isnumeric(line_comment), to_number(line_comment),0)
>
> how can I do this in Oracle?
>
my $line_comment;
my $sth=$dbh->prepare("Select line_comment from....");
$sth->execute();
$sth->bind_col(1,\$line_comment);
while ($sth->fetchrow_array() {
if ( $line_comment =~ /^[0-9]+/) {......}
}
-- Mladen Gogala Oracle DBA -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: mgogala_at_adelphia.net Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Sep 22 2003 - 19:59:53 CDT