| Manuál PHP | ||
|---|---|---|
| Předcházející | Další | |
pg_update
Popis
mixed pg_update ( resource connection, string table_name, array data, array condition [, int options] )pg_update() updates records that matches condition with data. If options is specified, pg_convert() is applied to data with specified options.
| Varování |
Tato funkce je EXPERIMENTÁLNÍ. Chování této funkce, její název a všechno ostatní, co je zde zdokumentováno, se v budoucích verzích PHP může BEZ OHLÁŠENÍ změnit. Berte to v úvahu a používejte tuto funkci na vlastní nebezpečí. |
Seznam parametrů
connectionPostgreSQL database connection resource.
table_nameName of the table into which to update rows.
dataAn array whose keys are field names in the table
table_name, and whose values are what matched rows are to be updated to.conditionAn array whose keys are field names in the table
table_name, and whose values are the conditions that a row must meet to be updated.optionsAny number of PGSQL_CONV_OPTS, PGSQL_DML_NO_CONV, PGSQL_DML_EXEC or PGSQL_DML_STRING combined. If PGSQL_DML_STRING is part of the
optionsthen query string is returned.
Návratové hodnoty
Vrací TRUE při úspěchu, FALSE při selhání. Returns string if PGSQL_DML_STRING is passed
via options.
Příklady
| Předcházející | Domů | Další |
| pg_untrace | Nahoru |