Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: sqlite show tables

by Corion (Patriarch)
on Jul 19, 2021 at 07:22 UTC ( [id://11135159]=note: print w/replies, xml ) Need Help??


in reply to sqlite show tables

You want to use the DBI "catalog methods" to retrieve table information. That way, your code will also work on other databases than SQLite:

use Data::Dumper; my $sth = $dbh->table_info; my $columns = $sth->fetchall_arrayref({}); print Dumper $columns;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-24 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found