Update A Row With Like

I want to update my row, but I got problem, all of the rows has been updated.




   $db = array(

            'status' => 3,

            'result' => 19,

            'output' => 'nice'

        );

    

      $link = '1399457644.c';

    

        Yii::app()->db->createCommand()

                ->update('detailsubmission', $db)

               ->where('link like :link',array(':link'=>"%$link%"));



Can someone help me?

Hi,

Follow the example in the url… goto like section

http://yii.googlecode.com/svn/trunk/docs/guide/database.query-builder.txt