嗨,我想从 cakephp 的特定列中获取不同的值。
这是我尝试过的:-
$new_data =$this->Event->findAll(null, 'DISTINCT events.source');
Event- is the name of my model.
events- is my table name in db.
Source:- is the column name from which i want to fetch values.
我不知道查询中有什么问题,谁能帮助我