Codeigniter Query Builder 使用 LIKE 条件加入 table 而不是 where?

Codeigniter Query Builder join table with LIKE condition instead of where?

我在文档中找不到任何答案,我正在努力实现这个:

$this-db->join("table", "column LIKE %string%");

但是没用...

$this->db->join('table', 'table.a = table2.b');

$this->db->like('field_name_in_table','value_to_be_compared');

试试这个。 注:这里table2是基table.