Skip to content

Instantly share code, notes, and snippets.

Created Feb 6, 2012

What would you like to do?
$session->db->dbh->do(qq{ CREATE TEMPORARY TABLE user_temp SELECT userId, username FROM users } );
$session->db->dbh->do(qq{ INSERT INTO user_temp SELECT 'foo', 'bar' } );
my $sth = $session->db->dbh->prepare( qq { SELECT * FROM user_temp } ) or die $DBI::errstr;
while( my $row = $sth->fetchrow_hashref ) {
warn Data::Dumper::Dumper $row;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.