develooper Front page | perl.perl6.internals | Postings from December 2008

For your encouragement

Thread Next
From:
Simon Cozens
Date:
December 5, 2008 02:14
Subject:
For your encouragement
Message ID:
4938FEE4.5030308@simon-cozens.org
I just ran this code, which worked with the expected results:

use DBDI;
my $conn = DBDI::DriverManager.getConnection("dbdi:SQLite3:test.db", "",
"");
my $stm = $conn.createStatement();
my $rs = $stm.executeUpdate("CREATE TABLE foo (bar, baz)");

my $stm = $conn.prepareStatement("INSERT INTO foo (bar, baz) VALUES (?,
?)");
$stm.setColumn(1, 123);
$stm.setColumn(2, "Thingy");
$stm.executeUpdate();

Merry Christmas,
Simon

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About