Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Retrieving column names from SQL with DBI

by Krillian (Acolyte)
on Sep 24, 2020 at 17:34 UTC ( [id://11122167]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($query) = our $connect->prepare("SELECT number, name FROM TableNam
    +e");
      $query->execute();
    ...
        }
        push(@loop_data, \%row_data);
      }
    
  2. or download this
    my ($query) = our $connect->prepare("SELECT * FROM TableName");
      $query->execute();
    ...
        }
        push(@loop_data, \%row_data);
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11122167]
Approved by Perlbotics
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-29 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found