我越來越: "Use of uninitialized value in join or string at ./test_script.pl line 69, <fh> line 91."
的代碼創建這個警告是在這裏: # Write results of SQL execution to output file
if ([email protected]) { print "\n DB
我正在使用DBI 1.624 ...並試圖連接SQL Server 2012.我編寫了perl腳本以從數據庫獲取數據,並在測試服務器上對其進行了測試。它工作正常。我重複了其他服務器的所有內容,現在我無法連接到帶有錯誤的數據庫:登錄錯誤。 我創建了新的登錄與SQL身份,我可以通過SQL Server Management Studio中使用它登錄,但是當我嘗試通過DBI連接: DBI->connec
我試圖理解爲什麼我有以下問題。 我正在寫一個小小的Perl腳本,從這裏和那裏拿一些例子,加入一些我自己的例子。 我正在做的是將查詢存儲在cfg文件中,根據傳入的參數檢索一個,執行並返回一個值。 use strict;
use warnings;
...
$comm = 'tablespace_critical'; # In the real script, this is a command
我使用Perl和我能夠連接到使用 此代碼 #!/usr/bin/perl
use DBI;
use strict;
my $dbh = DBI->connect("dbi:Pg:dbname=postgres;host=127.0.0.1;port=5432", "postgres", "postgres", { RaiseError => 1 }) or die $DBI::errstr;
我正在使用一個簡單的perl腳本來混淆mysql數據庫表中的數百萬行。我在腳本中使用了perl DBI和DBD :: mysql。下面的示例代碼 my $dbh = DBI->connect(<DB INFO>);
my $sth;
my $insert_com = "INSERT INTO TAB1 VALUES(?,?,?,?,?)";
for (1..50000000){