< CLOB: Setting Column Type   (Previous) Table of Contents (Next)   DECIMAL >

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());
mysql
CREATE TABLE xyz (b TEXT )
fbsql
CREATE TABLE xyz (b CLOB )