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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -