Downloads
Documentation
Get Involved
Help
Search docs
PHP 8.4.1 Released!
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Introducción »
« ociwritetemporarylob
Manual de PHP
Referencia de funciones
Extensiones de bases de datos
Extensiones de bases de datos específicas del proveedor
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
PostgreSQL
Introducción
Instalación/Configuración
Requerimientos
Instalación
Configuración en tiempo de ejecución
Tipos de recursos
Constantes predefinidas
Ejemplos
Uso básico
Funciones de PostgreSQL
pg_affected_rows
— Devuelve el número de registros afectados (filas)
pg_cancel_query
— Cancelar una consulta asíncrona
pg_client_encoding
— Obtiene la codificación del cliente
pg_close
— Cierra una conexión PostgreSQL
pg_connect
— Abre una conexión a PostgreSQL
pg_connect_poll
— Verifica el estado de un intento de conexión asíncrono en curso de PostgreSQL
pg_connection_busy
— Permite saber si la conexión esta ocupada o no
pg_connection_reset
— Restablece conexión (reconectar)
pg_connection_status
— Obtener estado de la conexión
pg_consume_input
— Reads input on the connection
pg_convert
— Conviertir valores de un array asociativo en valores adecuados para sentencias SQL
pg_copy_from
— Insertar registros dentro de una tabla desde un array
pg_copy_to
— Copiar una tabla a un array
pg_dbname
— Obtiene el nombre de la base de datos
pg_delete
— Borra registros
pg_end_copy
— Sincronizar con PostgreSQL
pg_escape_bytea
— Escapar un string para insertarlo en un campo bytea
pg_escape_identifier
— Escape a identifier for insertion into a text field
pg_escape_literal
— Escape a literal for insertion into a text field
pg_escape_string
— Escape a string for query
pg_execute
— Envía una solicitud para ejecutar una setencia preparada con parámetros dados, y espera el resultado
pg_fetch_all
— Obtiene todas las filas de un resultado como un array
pg_fetch_all_columns
— Fetches all rows in a particular result column as an array
pg_fetch_array
— Fetch a row as an array
pg_fetch_assoc
— Fetch a row as an associative array
pg_fetch_object
— Fetch a row as an object
pg_fetch_result
— Returns values from a result instance
pg_fetch_row
— Get a row as an enumerated array
pg_field_is_null
— Test if a field is SQL NULL
pg_field_name
— Returns the name of a field
pg_field_num
— Returns the field number of the named field
pg_field_prtlen
— Returns the printed length
pg_field_size
— Returns the internal storage size of the named field
pg_field_table
— Returns the name or oid of the tables field
pg_field_type
— Devuelve el nombre de tipo para el número de campo correspondiente
pg_field_type_oid
— Returns the type ID (OID) for the corresponding field number
pg_flush
— Flush outbound query data on the connection
pg_free_result
— Free result memory
pg_get_notify
— Gets SQL NOTIFY message
pg_get_pid
— Obtiene la ID del proceso del backend
pg_get_result
— Get asynchronous query result
pg_host
— Devuelve el nombre de host asociado a la conexión
pg_insert
— Insert array into table
pg_last_error
— Obtiene una cadena con el último mensaje de error de la conexión
pg_last_notice
— Devuelve el último aviso del servidor PostgreSQL
pg_last_oid
— Returns the last row's OID
pg_lo_close
— Close a large object
pg_lo_create
— Create a large object
pg_lo_export
— Export a large object to file
pg_lo_import
— Import a large object from file
pg_lo_open
— Open a large object
pg_lo_read
— Read a large object
pg_lo_read_all
— Reads an entire large object and send straight to browser
pg_lo_seek
— Seeks position within a large object
pg_lo_tell
— Returns current seek position a of large object
pg_lo_truncate
— Truncates a large object
pg_lo_unlink
— Delete a large object
pg_lo_write
— Write to a large object
pg_meta_data
— Get meta data for table
pg_num_fields
— Returns the number of fields in a result
pg_num_rows
— Returns the number of rows in a result
pg_options
— Obtener las opciones asociadas con la conexión
pg_parameter_status
— Looks up a current parameter setting of the server
pg_pconnect
— Abre una conexión persistente a PostgreSQL
pg_ping
— Ping a conexión de base de datos
pg_port
— Devuelve el número de puerto asociado con la conexión
pg_prepare
— Envía una solicitud para crear una sentencia preparada con los parámetros dados, y espera que se complete
pg_put_line
— Send a NULL-terminated string to PostgreSQL backend
pg_query
— Ejecutar una consulta
pg_query_params
— Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text
pg_result_error
— Get error message associated with result
pg_result_error_field
— Returns an individual field of an error report
pg_result_memory_size
— Returns the amount of memory allocated for a query result
pg_result_seek
— Set internal row offset in result instance
pg_result_status
— Get status of query result
pg_select
— Select records
pg_send_execute
— Sends a request to execute a prepared statement with given parameters, without waiting for the result(s)
pg_send_prepare
— Envía una solicitud para crear una instrucción preparada con los parámetros dados, sin esperar la finalización
pg_send_query
— Sends asynchronous query
pg_send_query_params
— Submits a command and separate parameters to the server without waiting for the result(s)
pg_set_client_encoding
— Set the client encoding
pg_set_error_context_visibility
— Determines the visibility of the context's error messages returned by pg_last_error and pg_result_error
pg_set_error_verbosity
— Determines the verbosity of messages returned by pg_last_error and pg_result_error
pg_socket
— Obtener un identificador de sólo lectura en el socket subyacente a una conexión de PostgreSQL
pg_trace
— Enable tracing a PostgreSQL connection
pg_transaction_status
— Devuelve el estado actual de la transaccion del servidor
pg_tty
— Devolver el nombre TTY asociado con la conexión
pg_unescape_bytea
— Unescape binary for bytea type
pg_untrace
— Desactivar el rastreo de una conexión de PostgreSQL
pg_update
— Actualizar tabla
pg_version
— Devuelve un array con el cliente, protocolo y versión del servidor (si está disponible)
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google