Thread Überprüfung ob table schon vorhanden?: Überprüfung ob table schon vorhanden? (5 answers)
Opened by Gast at 2004-04-10 23:52

Lukas
 2004-05-20 01:44
#32009 #32009
User since
2004-04-11
6 Artikel
BenutzerIn
[default_avatar]
um das noch zu beenden:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/perl 

# Einbinden der Module
#use strict;
use CGI qw/:standard :html3/;
use CGI::Carp qw/fatalsToBrowser/;
use DBI;


my $db=DBI->connect('dbi:mysql:dbxxxxxxxx;dbxxx.puretec.de','dboxxxxxxxx','xxxxxxxx');


### Get a list of tables and views
my @tables = $db->tables();

my $http=new CGI;
print $http->header();

$i=0;

for (@tables) {
print <<End_Of_Step0;

$tables[$i]<br>



End_Of_Step0
$i++;
}


# Datenbank-Verbindung beenden
$db->disconnect();

# HTML-Dokument beenden
print $http->end_html();

View full thread Überprüfung ob table schon vorhanden?: Überprüfung ob table schon vorhanden?