Thread Existenzprüfung von Tabellen (2 answers)
Opened by Ronnie at 2007-04-02 16:15

Ronnie
 2007-04-02 16:15
#35387 #35387
User since
2003-08-14
2022 Artikel
BenutzerIn
[default_avatar]
Zur Not so:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl

use strict;
use warnings;

use DBI;
use Data::Dumper;

my $dsn = "DBI:mysql:database=mysql;host=localhost;port=3306";
my $dbh = DBI->connect($dsn, 'root', '') or die "can't connect to database!";
my $ref = $dbh->selectall_arrayref("SHOW TABLES");
print Dumper $ref;
$dbh->disconnect;

Sollte aber auch anders gehen. Evtl. mal in CPAN:DBD::mysql schauen.\n\n

<!--EDIT|Ronnie|1175516326-->

View full thread Existenzprüfung von Tabellen