本文整理汇总了PHP中CI_DB_pdo_driver::_delete方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_DB_pdo_driver::_delete方法的具体用法?PHP CI_DB_pdo_driver::_delete怎么用?PHP CI_DB_pdo_driver::_delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CI_DB_pdo_driver
的用法示例。
在下文中一共展示了CI_DB_pdo_driver::_delete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _delete
/**
* Delete statement
*
* Generates a platform-specific delete string from the supplied data
*
* @param string $table
* @return string
*/
protected function _delete($table)
{
if ($this->qb_limit) {
return 'WITH ci_delete AS (SELECT TOP ' . $this->qb_limit . ' * FROM ' . $table . $this->_compile_wh('qb_where') . ') DELETE FROM ci_delete';
}
return parent::_delete($table);
}
示例2: _delete
/**
* Delete statement
*
* Generates a platform-specific delete string from the supplied data
*
* @param string $table
* @return string
*/
protected function _delete($table)
{
$this->qb_limit = FALSE;
return parent::_delete($table);
}
示例3: _delete
/**
* Delete statement
*
* Generates a platform-specific delete string from the supplied data
*
* @param string $table
* @return string
*/
protected function _delete($table)
{
if ($this->qb_limit) {
$this->where('rownum <= ', $this->qb_limit, FALSE);
$this->qb_limit = FALSE;
}
return parent::_delete($table);
}