使用zend更新sql数据库中的多行

The values I am getting in the controller through ajax is given below, The numbers 2677,2678..etc are the id of a number table in my db

Num[info] => (2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688)
Num[gselected] => 8

I want to change a particular column say gId in the Number table for all those rows whose ids are in the Num[info] array with new value Num[gselected]

I am using zend 1.12 ,