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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to