%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/proc/self/root/usr/share/doc/libdbd-mysql-perl/examples/ |
Upload File : |
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
use Data::Dumper;
my $create= <<'EOTABLE';
create table bigt1 (
id bigint unsigned not null default 0
)
EOTABLE
#my $dbh= DBI->connect('DBI:mysql:test', 'root', 'root', { mysql_bind_type_guessing => 2})
# or die "unable to connect $DBI::errstr";
my $dbh= DBI->connect('DBI:mysql:test', 'root', 'root')
or die "unable to connect $DBI::errstr";
$dbh->{mysql_bind_type_guessing}= 1;
$dbh->do('drop table if exists bigt1');
$dbh->do($create);
my $statement= 'insert into bigt1 (id) values (?)';
my $sth= $dbh->prepare($statement);
my $rows= $sth->execute('9999999999999999');
print "rows $rows\n";
$statement= 'update bigt1 set id = ?';
$sth= $dbh->prepare($statement);
$rows= $sth->execute('9999999999999998');
print "rows $rows\n";
my $retref= $dbh->selectall_arrayref('select * from bigt1');
print Dumper $retref;