|
|
sybperl-l Archive
Up Prev Next
From: "Ruth S dot McNay" <ruthmcnay at aol dot com>
Subject: Re: $dbh->Scalar()
Date: Jun 22 2000 8:33PM
$sql="select getdate(); # or anything that return one value from a select
$dbh->ct_sql("$sql",sub { $ret=@_[0]; });
if ($dbh->{RC} == CS_FAIL) {
print log"status is CS_FAIL after $sql";
# &errexit(); This calls my exit routine.
}
Jamie Belanger wrote:
>
> Part 1.1Type: Plain Text (text/plain)
Is there a ct_sql equivalent to the Sybase::Simple $dbh->Scalar() command?
(such as to grab the results of a getdate() ).
Jamie Belanger
System Administrator=20
Global Crossing
(319) 298-1489 or ext. 489=20
--
*****************************************************************************
Ruth S. McNay Phone:520-514-3408
AOL Tucson Development Center Fax: 520-514-3194
5401 East Williams Blvd.
Tucson, Arizona 85711
Database Administrator RuthMcNay@aol.com
Information Systems/Information Technology
|