相关疑难解决方法(0)

mysql,通过codeigniter进行区分大小写的比较

我想通过codeigniter的db helper类编写以下查询,引导我plz

SELECT * FROM table where column like binary "abc";
Run Code Online (Sandbox Code Playgroud)

我试过了

$this->db->select("*");
$this->db->from("table");
$this->db->like("column","binary abc");
$this->db->get();
Run Code Online (Sandbox Code Playgroud)

但它产生了

SELECT * FROM table WHERE column like '%binary abc%'
Run Code Online (Sandbox Code Playgroud)

codeigniter

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

codeigniter ×1