array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.cubrid-lob-size.php', 1 => 'cubrid_lob_size', ), 'up' => array ( 0 => 'ref.cubrid.php', 1 => 'Fonctions CUBRID', ), 'prev' => array ( 0 => 'function.cubrid-lob-send.php', 1 => 'cubrid_lob_send', ), 'next' => array ( 0 => 'function.cubrid-lob2-bind.php', 1 => 'cubrid_lob2_bind', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/cubrid/functions/cubrid-lob-size.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL CUBRID >= 8.3.1)
cubrid_lob_size — Récupère la taille des données BLOB/CLOB
La fonction cubrid_lob_size() est utilisée pour récupérer la taille des données BLOB/CLOB.
lob_identifier
Identifiant LOB.
Une chaîne représentant la taille des données LOB, lorsque
l'opération a réussi, ou false
si une erreur survient.
Version | Description |
---|---|
8.4.0 | Le type de la valeur retourné à changer. Avant, c'était un entier, maintenant, c'est une chaîne de caractères. |
Exemple #1 Exemple avec cubrid_lob_size()
<?php
$lobs = cubrid_lob_get($con, "SELECT doc_content FROM doc WHERE doc_id=5");
echo "Taille de la documentation :".cubrid_lob_size($lobs[0]);
cubrid_lob_export($conn, $lobs[0], "doc_5.txt");
cubrid_lob_close($lobs);
?>