(PHP 4 >= 4.2.0, PHP 5, PHP 7)
fbsql_create_clob — Create a CLOB
$clob_data
[, resource $link_identifier
] ) : stringCreates a CLOB from the given data.
clob_data
The CLOB data.
link_identifier
锟斤拷 fbsql_connect() 锟斤拷 fbsql_pconnect() 锟斤拷锟截碉拷 FrontBase 锟斤拷锟接憋拷识锟斤拷.
锟斤拷锟窖★拷锟轿粗革拷锟斤拷锟斤拷锟斤拷锟斤拷岢拷圆锟斤拷锟揭伙拷锟斤拷锟� FrontBase 锟斤拷锟斤拷锟斤拷锟侥匡拷锟斤拷锟斤拷锟接o拷锟斤拷锟斤拷没锟斤拷锟揭碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟接o拷锟结尝锟斤拷通锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 fbsql_connect() 锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷
Returns a resource handle to the newly created CLOB, which can be used with insert and update commands to store the CLOB in the database.
Example #1 fbsql_create_clob() example
<?php
$link = fbsql_pconnect("localhost", "_SYSTEM", "secret")
or die("Could not connect");
$filename = "clob_file.txt";
$fp = fopen($filename, "rb");
$clobdata = fread($fp, filesize($filename));
fclose($fp);
$clobHandle = fbsql_create_clob($clobdata, $link);
$sql = "INSERT INTO CLOB_TABLE (CLOB_COLUMN) VALUES ($clobHandle);";
$rs = fbsql_query($sql, $link);
?>