protected function calculateCREATE()
    {
        $this->query .= 'CREATE TABLE IF NOT EXISTS ';
        $this->query .= $this->create.' (';
        $this->queryStringFromArray('fields', '', ', ', false, true);
        $this->primaryKeyStringFromArray('primaryKeys', ', CONSTRAINT ');
        $this->foreignKeyStringFromArray('foreignKeys', ', CONSTRAINT ');
        $this->indexStringFromArray('indexes', ', INDEX ');
        $this->query .= ')';
    }
protected function calculateCREATE()
    {
        $this->query .= 'CREATE TABLE IF NOT EXISTS ';
        $this->query .= $this->create.' (';
        $this->queryStringFromArray('fields', '', ', ', false, true);
        $this->primaryKeyStringFromArray('primaryKeys', ', CONSTRAINT ');
        $this->foreignKeyStringFromArray('foreignKeys', ', CONSTRAINT ');
        $this->indexStringFromArray('indexes', ', INDEX ');
        $this->query .= ')';
    }
protected function calculateCREATE ( ) { $ this -> query .= 'CREATE TABLE IF NOT EXISTS ' ; $ this -> query .= $ this -> create . ' (' ; $ this -> queryStringFromArray ( 'fields' , '' , ', ' , false , true ) ; $ this -> primaryKeyStringFromArray ( 'primaryKeys' , ', CONSTRAINT ' ) ; $ this -> foreignKeyStringFromArray ( 'foreignKeys' , ', CONSTRAINT ' ) ; $ this -> indexStringFromArray ( 'indexes' , ', INDEX ' ) ; $ this -> query .= ')' ; }
Create a CREATE statement
Create a CREATE statement