in reply to sqlite show tables

See also SQLite Describe Table.

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^2: sqlite show tables
by igoryonya (Pilgrim) on Jul 20, 2021 at 04:36 UTC
    This one doesn't show how to do it in perl.

      Sure. Nothing but the truth. But the friendly manual I linked to isn’t about Perl. It is about SQLite. With the according driver DBD::SQLite and DBI I guess it should work. Probably with something like this:

      use DBI; my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile","",""); my $sth = $dbh->table_info(undef, $schema, $table, $type, \%attr); …;

      Uncomplete and not tested and it doesn’t compile, I know. And I suppressed or forgot the ugly details. As you like. The rest is left as an exercise to the reader.

      «The Crux of the Biscuit is the Apostrophe»