如何检查查询构建器 Codeigniter 3 中是否存在列? 示例:
$query = $this->db->coluln_exists('column_name', 'table_name');
if($query == TRUE)
{
return TRUE;
}
else
{
return FALSE;}
谢谢,
最佳答案
if ($this->db->field_exists('field_name', 'table_name'))
{
// some code...
}
You can see complete description here.
关于codeigniter-3 - 检查列是否存在 Codeigniter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49705833/