Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: MySQL hashes with same key

by mje (Deacon)
on Nov 16, 2012 at 09:12 UTC ( #1004159=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    SQL> create table mje(mac varchar(10), comment varchar(10));
    SQLRowCount returns -1
    ...
    SQLRowCount returns -1
    3 rows fetched
    SQL> 
    
  2. or download this
    perl -le 'use DBI; my $h = DBI->connect;nect; my $r = $h->selectall_ha
    +shref(q/select * from mje/, "mac"); use Data::Dumper; print Dumper($r
    +);'
    $VAR1 = {
    ...
                          'mac' => '1226'
                        }
            };
    
  3. or download this
    perl -le 'use DBI; my $h = DBI->connect;nect; my $r = $h->selectall_ar
    +rayref(q/select * from mje/); use Data::Dumper; print Dumper($r);'
    $VAR1 = [
    ...
                'comment3'
              ]
            ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004159]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-09-03 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls