dbi

    6熱度

    1回答

    我越來越: "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

    0熱度

    1回答

    我正在使用DBI 1.624 ...並試圖連接SQL Server 2012.我編寫了perl腳本以從數據庫獲取數據,並在測試服務器上對其進行了測試。它工作正常。我重複了其他服務器的所有內容,現在我無法連接到帶有錯誤的數據庫:登錄錯誤。 我創建了新的登錄與SQL身份,我可以通過SQL Server Management Studio中使用它登錄,但是當我嘗試通過DBI連接: DBI->connec

    2熱度

    2回答

    我在Windows 7 64位機器上使用perl 5.18.1.1800和ppm 4.19。 我需要使用DBD-mysql才能從perl訪問mysql。但我得到以下錯誤信息: use DBI(); my $dbh = DBI->connect("DBI:mysql:database=mydbname;host=localhost","myuser", "mypass",{'RaiseError'

    0熱度

    2回答

    您好我需要導出這些密鑰值,IM geeting而出口,請分享你的想法,這樣 Oct 1 06:25:45 github.com: { "pid":14428, "ppid":14397, "program":"upload-pack", "git_dir":"/data/repo/testorg/testrepo.git", "cmdline":"git-upload-pack --statele

    4熱度

    1回答

    我想使用Ruby-DBI執行簡單的查詢,但所有結果都是零。 查詢應該返回6行,我已經插入到數據庫中。 我的代碼: conn = DBI.connect("DBI:ODBC:myODBC", user, password) sql = "select S.Name, S.InternalName, from sites S where S.IsEnabled = 1" sth = conn.s

    1熱度

    2回答

    我想分割使用Perl和DBI模塊的MySQL查詢的結果。這裏是我的代碼: #!/usr/bin/perl -w use DBI; $dbh = DBI->connect('DBI:mysql:host', 'user', 'password' ) || die "Could not connect to database: $DBI::errstr"; $sql =

    0熱度

    1回答

    幾列我用這個代碼: while (my $line = <IN>) { chomp $line; if($line =~ /(.*?:)\{(.+)\}/) { my $value2 = $2; my @values2 = split(/,/, $value2); my $insertKeys; my $insertValues; foreach $data(@values2)

    0熱度

    1回答

    我試圖理解爲什麼我有以下問題。 我正在寫一個小小的Perl腳本,從這裏和那裏拿一些例子,加入一些我自己的例子。 我正在做的是將查詢存儲在cfg文件中,根據傳入的參數檢索一個,執行並返回一個值。 use strict; use warnings; ... $comm = 'tablespace_critical'; # In the real script, this is a command

    2熱度

    1回答

    我使用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;

    0熱度

    1回答

    我正在使用一個簡單的perl腳本來混淆mysql數據庫表中的數百萬行。我在腳本中使用了perl DBI和DBD :: mysql。下面的示例代碼 my $dbh = DBI->connect(<DB INFO>); my $sth; my $insert_com = "INSERT INTO TAB1 VALUES(?,?,?,?,?)"; for (1..50000000){