Mailinglisten-Archive |
Ulf Wendel wrote:
> > > Ein Problem das auf jeden fall kommt, ist, das die oci8 schnittstelle von
> > > php nicht so gut ausgebaut ist wie die von mysql.
> Beobachte mal die CVS Commits. Ein gewisser Thies C. Arntzen
> schreibt recht viel an der Oracle Schnittstelle. Sie ist - soweit
> ich es sehen kann - bereits komplett auf Zend angepaßt. Die
> wichtigsten Funktionen sind da:
Das ist ursprünglich von Stig Sæther Bakken geschrieben worden. Dann
haben Stig und Thies mal ein paar Wochen in Hamburg zusammen gearbeitet.
> (Source PHP 4.0b04)
Die aktuelle Liste der Funktionskurzreferenz vom 2.3.2000:
# beta/php4/ext/oci8/oci8.c
int OCILogon(string user, string pass[, string db])
Connect to an Oracle database and log on. returns a new session.
mixed OCIColumnType(int stmt, int col)
Tell the data type of a column
int OCIBindByName(int stmt, string name, mixed &var, int maxlength [,
int type])
Bind a PHP variable to an Oracle placeholder by name
int OCICancel(int stmt)
Prepare a new row of data for reading
int OCIColumnIsNULL(int stmt, int col)
Tell whether a column is NULL
string OCIColumnName(int stmt, int col)
Tell the name of a column
int OCIColumnSize(int stmt, int col)
Tell the maximum data size of a column
string OCICommit(int conn)
Commit the current context
void OCIDebug(int onoff)
Toggle internal debugging output for the OCI extension
int OCIDefineByName(int stmt, string name, mixed &var [, int type])
Define a PHP variable to an Oracle column by name
int OCIError([int stmt|conn|global])
Return the last error of stmt|conn|global. If no error happened
returns false.
int OCIExecute(int stmt [, int mode])
Execute a parsed statement
int OCIFetch(int stmt)
Prepare a new row of data for reading
int OCIFetchInto(int stmt, array &output [, int mode])
Fetch a row of result data into an array
int OCIFetchStatement(int stmt, array &output)
Fetch all rows of result data into an array
int OCIFreeStatement(int stmt)
Free all resources associated with a statement
int OCILogoff(int conn)
Disconnect from database
int OCINLogon(string user, string pass [, string db])
Connect to an Oracle database and log on. returns a new session
int OCINewCursor(int conn)
Return a new cursor (Statement-Handle) - use this to bind
ref-cursors!
string OCINewDescriptor(int connection [, int type ])
Initialize a new empty descriptor LOB/FILE (LOB is default)
int OCINumCols(int stmt)
Return the number of result columns in a statement
int OCIPLogon(string user, string pass [, string db])
Connect to an Oracle database using a persistent connection and log
on. Returns a new session.
int OCIParse(int conn, string query)
Parse a query and return a statement
int OCIParse(int conn, string query)
Parse a query and return a statement
string OCIResult(int stmt, mixed column)
Return a single column of result data
string OCIRollback(int conn)
Rollback the current context
string OCIServerVersion(int conn)
Return a string containing server version information
int OCIStatementType(int stmt)
Return the query type of an OCI statement
string ocifreedesc(object lob)
Deletes large object description
string ociloadlob(object lob)
Loads a large object
string ocisavelob(object lob)
Saves a large object
string ocisavelobfile(object lob)
Saves a large object file
void ociwritelobtofile(object lob [, string filename] [, int start] [,
int length])
Writes a large object into a file
Was fehlt sind die Funktionen ocicolumnscale(), ocicolumnprecision() und
ocicolumntyperaw(). Die wurden am 2.3.2000 von Thies programmiert.
-Egon
--
Six Offene Systeme GmbH. Stuttgart - Berlin - New York. Wir stellen aus:
Hannover Messe 20.03. - 25.03.2000 Halle 14 Stand J50
Fon +49 711 9 90 91 64 · Fax +49 711 9 90 91 99 · http://www.six.de/
php::bar PHP Wiki - Listenarchive