📜  在 ci 中选择查询 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:34.478000             🧑  作者: Mango

代码示例1
$this->db->select('username')
         ->from('user')
         ->where('`locationId` in', '(select `locationId` from `locations` where `countryId` = '.$countryId.')', false)
         ->get();