Server IP : 192.168.23.10 / Your IP : 18.227.0.21 Web Server : Apache System : Linux echo.premieradvertising.com 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64 User : rrrallyteam ( 1049) PHP Version : 8.1.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /sbin/../share/bison/../doc/cpanel-pdns/../perl-DBI/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/usr/bin/perl -w use DBI; $dbh = DBI->connect('dbi:SQLite:dbname=ex_profile.db', '', '', { RaiseError => 1 }); $dbh->do("DROP TABLE IF EXISTS ex_profile"); $dbh->do("CREATE TABLE ex_profile (a int)"); $dbh->do("INSERT INTO ex_profile (a) VALUES ($_)", undef) for 1..100; #$dbh->do("INSERT INTO ex_profile (a) VALUES (?)", undef, $_) for 1..100; my $select_sql = "SELECT a FROM ex_profile"; $dbh->selectall_arrayref($select_sql); $dbh->selectall_hashref($select_sql, 'a'); my $sth = $dbh->prepare($select_sql); $sth->execute; while ( @row = $sth->fetchrow_array ) { } __DATA__