php - mysql set select field as array -
how can write following query return default set array field.
$some_default_info=array('a','b','c'); select `first_name`,`last_name`, $some_default_info default_info people_table;
i expect following sample data result set.
array( [0]=>array('first_name'=>'david','last_name'=>'davidson','default_info'=>array('a','b','c'), [1]=>array('first_name'=>'peter','last_name'=>'peterson','default_info'=>array('a','b','c') )
Comments
Post a Comment