diffrent amount of datasets with mysql man perl

2002-05-14 Thread Samier . Kesou

Hello,

im using
mysql 3.23.41-log
perl 5.6

This might be a perl question but I have to
start somewhere:-)

to get the data out of the DB im using:

--- perl snip ---
while (my @fields = $sth-fetchrow_array()) {
print join (;, @fields), \n;
}
--- perl snip ---

so each data set is presented in csv style.
But the amount of data sets is not the same.

For a sql statement im using a simple select count(*)...

When im using the mysql client for the select statement more datasets are
returned
 then with the perl script( as an example 2348 lines to 3206 lines).

does someone have a clue to this problem?
Thanks in advance,
sake.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: diffrent amount of datasets with mysql man perl

2002-05-14 Thread Samier . Kesou


Hi,

thanks for the fast replies,

It was a database problem.
I compared two tables wich were not syncronised and
therefor didnt have the same amount of datasets.

Thanks
sake.



   
  
   
  
  Samier.Kesou@bfa-berli   An:   [EMAIL PROTECTED] 
  
  n.de Kopie:  
  
   Thema:diffrent amount of datasets 
with mysql man perl   
  14.05.02 15:55   
  
   
  
   
  




Hello,

im using
mysql 3.23.41-log
perl 5.6

This might be a perl question but I have to
start somewhere:-)

to get the data out of the DB im using:

--- perl snip ---
while (my @fields = $sth-fetchrow_array()) {
print join (;, @fields), \n;
}
--- perl snip ---

so each data set is presented in csv style.
But the amount of data sets is not the same.

For a sql statement im using a simple select count(*)...

When im using the mysql client for the select statement more datasets are
returned
 then with the perl script( as an example 2348 lines to 3206 lines).

does someone have a clue to this problem?
Thanks in advance,
sake.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php