expert,
I run a perl script on solaris9.
this is the script:
my $sql = "SELECT produce_code, product_name INTO OUTFILE 'export.txt' from products";
my $sth = $dbh->prepare($sth);
$sth->execute or die("Error executing:$DBI::errstr");
it returns error excuting: Query was empty at line 222.
when I run it at mysql>SELECT produce_code, product_name INTO OUTFILE 'export.txt' from products;
it returns records.
anybody can tell me what's wrong?
I run a perl script on solaris9.
this is the script:
my $sql = "SELECT produce_code, product_name INTO OUTFILE 'export.txt' from products";
my $sth = $dbh->prepare($sth);
$sth->execute or die("Error executing:$DBI::errstr");
it returns error excuting: Query was empty at line 222.
when I run it at mysql>SELECT produce_code, product_name INTO OUTFILE 'export.txt' from products;
it returns records.
anybody can tell me what's wrong?