Mailinglisten-Archive |
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
siehe sample.
tc
On Thu, Jul 13, 2000 at 04:47:02PM +0200, Juri Smarschevski wrote:
> Hi Liste,
>
> ich habe keine Erfahrung mit Oracle unter PHP und im
> Moment auch keine passende Testumgebung ;-(.
> Meine Frage ist, ob die Oracle Stored Procedures (von
> PHP aus) sich einfach ausfuehren lassen (als eine
> SQL-Query, wie sonst ?) oder gibt's da irgendwelche
> Tricks bzw. Einschraenkungen?
>
> Im voraus vielen Dank und Gruss,
> Juri
>
>
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_php-center.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="refcurs.sql"
CREATE OR REPLACE PACKAGE info AS
TYPE the_data IS REF CURSOR RETURN all_users%ROWTYPE;
PROCEDURE output(return_data IN OUT the_data);
END info;
/
CREATE OR REPLACE PACKAGE BODY info AS
PROCEDURE output(return_data IN OUT the_data) IS
BEGIN
OPEN return_data FOR SELECT * FROM all_users;
END output;
END info;
/
--wRRV7LY7NUeQGEoC
Content-Type: application/x-httpd-php
Content-Disposition: attachment; filename="refcurs.php"
<?php
$conn = OCILogon("digicol","digicol");
$curs = OCINewCursor($conn);
$stmt = OCIParse($conn,"begin info.output(:data); end;");
ocibindbyname($stmt,":data",&$curs,-1,OCI_B_CURSOR);
ociexecute($stmt);
ociexecute($curs); // start working with our ref-cursor
while (OCIFetchInto($curs,&$data)) {
var_dump($data);
}
?>
--wRRV7LY7NUeQGEoC--
php::bar PHP Wiki - Listenarchive