Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: MySQL hashes with same key

by mje (Curate)
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 lurking in the Monastery: (13)
As of 2015-07-03 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls