Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > no results from Sybase::DBLib->results

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-04, 18:01
adamgotch adamgotch is offline
Registered User
 
Join Date: Apr 2004
Posts: 5
no results from Sybase::DBLib->results

Hello:

I run the following query from isql:
'select pr.nr, sa.value, sa.attributenr from products pr, string_attribute sa where pr.nr=sa.productnr and pr.shopproduct=1 and (sa.attributenr="1012" or sa.attributenr="1013" or sa.attributenr="1069") and NOT EXISTS (select sp.sub from sub_products sp where sp.sub=pr.nr)'
and it returns several thousand results.

However when I put it in the Sybase::DBLib command buffer with
my $query = "above query";
my $dbh = Sybase::DBLib->new('un', 'pw', 'server');
$dbh->dbcmd("$query");
$dbh->dbsqlexec;
$dbh->dbresults;
while (@results = $dbh->dbnextrow) {
more statements;
}

there are no iterations of the while loop.

Please help.

Adam

Last edited by adamgotch : 06-17-04 at 17:28.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On