cubrid_lob2_export

(PECL CUBRID >= 8.4.1)

cubrid_lob2_exportExport the lob object to a file

Beschreibung

cubrid_lob2_export(resource $lob_identifier, string $file_name): bool

The cubrid_lob2_export() function is used to save the contents of BLOB/CLOB data to a file. To use this function, you must use cubrid_lob2_new() or fetch a lob object from CUBRID database first. If the file already exists, the operation will fail. This function will not influence the cursor position of the lob object. It operates the entire lob object.

Parameter-Liste

lob_identifier

Lob identifier as a result of cubrid_lob2_new() or get from the result set.

filename

File name you want to store BLOB/CLOB data. It also supports the path of the file.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Beispiele

Beispiel #1 cubrid_lob2_export() example

<?php
// Table: test_lob (id INT, contents CLOB)

$conn cubrid_connect("localhost"33000"demodb""dba""");

cubrid_execute($conn,"DROP TABLE if exists doc");
cubrid_execute($conn,"CREATE TABLE doc (id INT, doc_content CLOB)");
cubrid_execute($conn,"INSERT INTO doc VALUES (5,'hello,cubrid')");

$req cubrid_prepare($conn"select * from doc");

cubrid_execute($req);

cubrid_move_cursor($req1CUBRID_CURSOR_FIRST);

$row cubrid_fetch($reqCUBRID_NUM CUBRID_LOB);

cubrid_lob2_export($row[1], "doc_3.txt");

cubrid_lob2_close($row[1]);
cubrid_disconnect($conn);
?>

Siehe auch

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

szopiclone Till salu. generisk Eszopiclone onlineapotek - Jag behöver Eszopiclone fö

Till salu Eszopiclone. generisk Eszopiclone onlineapotek Behöver du kvalitetsmedicin utan krångel? Vårt onlineapotek är här för att hjälpa ...

Geschrieben von travelder am 20.06.2026 20:51:35
Forum: Bücher-Forum
alexia Preiswert kaufen. Palexia kauf - Palexia legal online kaufen. Mouscron — Belg

Preiswert kaufen Palexia. Palexia kauf Sie benötigen hochwertige Medikamente ohne Aufwand? Unsere Online-Apotheke hilft Ihnen dabei! Stöbern Sie ...

Geschrieben von drawer am 20.06.2026 20:51:28
Forum: Fragen/Vorschläge zum Forum
depend Barato. qual a cor da receita para comprar Adepend - como comprar Adepend pel

Barato Adepend. qual a cor da receita para comprar Adepend ¿Busca medicamentos de primera calidad sin salir de casa? ¡No busque más! Nuestra ti ...

Geschrieben von travelder am 20.06.2026 20:50:54
Forum: Entwicklungsumgebungen
trattera Sans ordonnance. Strattera Sans Prescription Prix - Strattera Pas Cher Fran

Sans ordonnance Strattera. Strattera Sans Prescription Prix Avez-vous besoin de médicaments fiables et de haute qualité, mais vous ne voulez pas ...

Geschrieben von drawer am 20.06.2026 20:50:29
Forum: IT-Security