in reply to execute Oracle anonymous procedure using perl
poj#!perl use strict; use DBD::Oracle; runThis("BEGIN :now := CURRENT_TIMESTAMP ; END;"); sub runThis { my $procT = shift; my $dbh1=DBI->connect( 'dbi:Oracle:host=localhost;sid=xe','user','password', {RaiseError => 1 , PrintError => 0} ); my $now = ''; my $sth1 = $dbh1->prepare($procT); $sth1->bind_param_inout(":now",\$now,0); $sth1->execute; $dbh1->disconnect; print "time now is $now\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: execute Oracle anonymous procedure using perl
by Anonymous Monk on Feb 04, 2016 at 21:56 UTC | |
by poj (Abbot) on Feb 04, 2016 at 22:26 UTC | |
by Anonymous Monk on Feb 04, 2016 at 23:11 UTC | |
by poj (Abbot) on Feb 05, 2016 at 08:00 UTC | |
by Anonymous Monk on Feb 05, 2016 at 12:08 UTC | |
by Anonymous Monk on Feb 04, 2016 at 22:45 UTC | |
by poj (Abbot) on Feb 04, 2016 at 22:53 UTC |