Codxplore.com

Latest news: New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!


leftJoin()

$query = new Query;
$query    ->select(['tbl_user.username AS name', 'tbl_category.type as Category'])  
        ->from('tbl_user')
        ->leftJoin('tbl_category', 'tbl_category.createdby = tbl_user.userid')
        ->limit(2);
       
$command = $query->createCommand();
$data = $command->queryAll();

Tags : PHP, Yii2,

Views : 1746

Subscribe Us


Follow Us