Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Perl::DBI: Fehlermeldung

Empfohlene Antworten

Hallo zusammen,

hab folgendes Problem, wenn ich eine SQL-Abfrage ausführen will kommt bei mir folgender Fehler:

DBD::mysql::st execute failed: No Database Selected at buildtables.pl line 26.

Mein Quelltext:

my $DbH = DBI->connect($DbType, $DbUser, $Pw, {'RaiseError' => 1});

my $SQL_Statement = "create table test2 (name int)";

$sth = $DbH->prepare( $SQL_Statement );

$sth->execute();

line 26 wäre $sth->execute();

Was is daran falsch, ich verstehs nicht so ganz....

Hm, bin jetzt nicht der Perl Freak, aber das sieht ganz danach aus, dass du keine Datenbank ausgewählt hast, was ja auch die Fehlermeldung verkündet!

Du stellst eigentlich nur eine Verbindung zum Datenbank Server her...

mfg

Ja, sorry, hab den Fehler schon gefunden, hab den connect-Befehl über Skalare zusammengestellt und hab aber den Datenbank-Namen zu spät erst deklariert *peinlichis* ;-)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.