Re: query about empty return value from SELECT

2002-05-02 Thread aman cgiperl
sday, May 02, 2002 11:40 AM Subject: Re: query about empty return value from SELECT > on Thu, 02 May 2002 18:29:08 GMT, Aman Raheja wrote: > > > My code looks like following > > > > foreach (@abc) > > { > >$sth = $dbh->prepare("select distinct

Re: query about empty return value from SELECT

2002-05-02 Thread Felix Geerinckx
on Thu, 02 May 2002 18:29:08 GMT, Aman Raheja wrote: > My code looks like following > > foreach (@abc) > { >$sth = $dbh->prepare("select distinct X from Y where P='$_'"); >$sth->execute; >$reference = $sth->fetchall_arrayref(); > >if(@$reference eq '') >{ > print "$_ i