CLOB: Getting Column Type
/** * Returns the SQL keyword for CLOB data types in CREATE TABLE * statements * * @return string the query fragment your DBMS needs */ function getClobType() { return $this->ClobType; }
require 'connect.inc';
$query = 'CREATE TABLE xyz (b ' . $p->getClobType() . ')';
echo $query;
$db->query($query);
$db->query('DROP TABLE xyz ' . $p->getDropRestrict());
CREATE TABLE xyz (b TEXT ) |
CREATE TABLE xyz (b CLOB ) |