Answers for "yii app db createcommand join yii1"

PHP
0

yii app db createcommand join yii1

$user = Yii::app()->db->createCommand()
    ->select('id, username, profile')
    ->from('tbl_user u')
    ->join('tbl_profile p', 'u.id=p.user_id')
    ->where('id=:id', array(':id'=>$id))
    ->queryRow();
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language