ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:updateclob

This is an old revision of the document!


updateClob

Support for this function is limited. See the Feature Comparison Matrix

Syntax
mixed updateClob(
    string $tableName,
    string $columnName,
    string $clobValue,
    string $whereStatement,
)

Description

The function updateClob() updates a column specified by $columnName in an row of a table, specified by $tableName with a value specified by $clobValue.

$where

The where statement must match a row, or set of rows in the table.


Usage

/*
 * Connection assumed
 */
$tableName = 'textfiles';
$columnName = 'text_data';
 
$clob = file_get_contents('/temp/test.txt');
 
 
$db->updateClob($tableName,$columnName,$clob,"ID=140")
v5/reference/connection/updateclob.1438737589.txt.gz · Last modified: 2017/04/21 11:32 (external edit)