取数据库的字段
我读取数据库的一个字段,怎么让他只显示不同的,相同的只显示一个。 <?php echo lang($right_group ); ?> distinct 这个在什么地方加? <?php echo $this->form->distanct($v_right_group);?> 我这样显示distinct为定义,我该在什么地方定义?怎么定义? 在sql语句的地方写$this->db->query('SELECT distanct id from tablle')->result_array(); $this->db->distinct();
$this->db->get('table'); 如果你用AR就如LS
不用就如LS的LS
文档丰富 可是没人看http://codeigniter.org.cn/user_guide/database/active_record.html $this->db->distinct(); 这个放在什么地方?
页:
[1]