ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:updateclob

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.txt · Last modified: 2016/01/17 01:59 by mnewnham