Sha256: 571378a4ee3e15615d52dec97913cce688b9b728a54fecea40ad01bb7d5424c0

Contents?: true

Size: 644 Bytes

Versions: 20

Compression:

Stored size: 644 Bytes

Contents

use DBI;

$dbh = DBI->connect("dbi:Oracle:oracle.neumann", "scott", "tiger", {RaiseError => 1, AutoCommit => 0} );


$dbh->do("DROP TABLE MYTEST");
$dbh->do("CREATE TABLE MYTEST (a INT, b VARCHAR2(256), c FLOAT, d VARCHAR2(256))");

$sth = $dbh->prepare("INSERT INTO MYTEST VALUES (:1, :2, :3, :4)");

$i = 1;

while ($i <= 10000) {
  
  $sth->execute($i, "Michael der $i. von Neumann", 5.6 * $i, "HALLO LEUTE WIE GEHTS DENN SO?");
  
  $i = $i + 1;
  #print $i, "\n";
}


$dbh->commit();





#$sth = $dbh->prepare("SELECT * FROM EMP");

#$sth->execute();

#while (@row = $sth->fetchrow_array()) {
#  print(@row);
#}  


$dbh->disconnect();


Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
ydbi-0.6.0 examples/test1.pl
ydbi-0.5.9 examples/test1.pl
ydbi-0.5.8 examples/test1.pl
ydbi-0.5.7 examples/test1.pl
ydbi-0.5.6 examples/test1.pl
ydbi-0.5.5 examples/test1.pl
ydbi-0.5.4 examples/test1.pl
ydbi-0.5.3 examples/test1.pl
ydbi-0.5.2 examples/test1.pl
ydbi-0.5.1 examples/test1.pl
ydbi-0.5.0 examples/test1.pl
rails-dbi-0.1.2 examples/test1.pl
rails-dbi-0.1.1 examples/test1.pl
rails-dbi-0.1.0 examples/test1.pl
dbi-0.4.5 examples/test1.pl
dbi-0.4.4 examples/test1.pl
dbi-0.4.3 examples/test1.pl
dbi-0.4.2 examples/test1.pl
dbi-0.4.1 examples/test1.pl
dbi-0.4.0 examples/test1.pl