Funciones de Ovrimos SQL
Introducción
Ovrimos SQL Server, es un RDBMS de cliente/servidor, transaccional, combinado con capacidades Web y transacciones rápidas.
Note: This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 4.4.5 y PHP 5.1.0.
Note: Esta extensión no está disponible en plataformas Windows
Requisitos
Tendrá que instalar la biblioteca sqlcli disponible en la distribución de Ovrimos SQL Server.
Instalación
To enable Ovrimos support in PHP just compile PHP with the --with-ovrimos[=DIR] parameter to your configure line. DIR is the Ovrimos' libsqlcli install directory.
Configuración en tiempo de ejecución
Esta extensión no tiene directivas de configuración en php.ini.
Tipos de recursos
Ejemplos
Example#1 Conexión a Ovrimos SQL Server y consulta desde una tabla de sistema
<?php
$con = ovrimos_connect("servidor.dominio.com", "8001", "admin", "contrasenya");
if ($con != 0) {
echo "¡Conexión exitosa!";
$res = ovrimos_exec($con, "select table_id, table_name from sys.tables");
if ($res != 0) {
echo "¡Sentencia exitosa!";
ovrimos_result_all($res);
ovrimos_free_result($res);
}
ovrimos_close($con);
}
?>
Table of Contents
- ovrimos_close — Closes the connection to ovrimos
- ovrimos_commit — Commits the transaction
- ovrimos_connect — Connect to the specified database
- ovrimos_cursor — Returns the name of the cursor
- ovrimos_exec — Executes an SQL statement
- ovrimos_execute — Executes a prepared SQL statement
- ovrimos_fetch_into — Fetches a row from the result set
- ovrimos_fetch_row — Fetches a row from the result set
- ovrimos_field_len — Returns the length of the output column
- ovrimos_field_name — Returns the output column name
- ovrimos_field_num — Returns the (1-based) index of the output column
- ovrimos_field_type — Returns the (numeric) type of the output column
- ovrimos_free_result — Frees the specified result_id
- ovrimos_longreadlen — Specifies how many bytes are to be retrieved from long datatypes
- ovrimos_num_fields — Returns the number of columns
- ovrimos_num_rows — Returns the number of rows affected by update operations
- ovrimos_prepare — Prepares an SQL statement
- ovrimos_result_all — Prints the whole result set as an HTML table
- ovrimos_result — Retrieves the output column
- ovrimos_rollback — Rolls back the transaction