mysqlフィールドの追加
1321 ワード
以下にTHINKPHPの例を示す
$model = M("research_record");
$sql="alter table tp_research_record add s_mobile INT(100) comment ' ',add r_id INT(100) comment ' ID',add q_id INT(100) comment ' ID',add a_id INT(100) comment ' ID',add r_time INT(100) comment ' ' "; $result =$model->execute($sql); if($result ){ echo" "; }else{ echo " "; }