예제 #1
0
파일: Model.php 프로젝트: v3u3i87/run_cli
 /**
  * 获取表字段
  */
 public function getField()
 {
     $sql = "SHOW COLUMNS FROM {$this->_table}";
     return $this->_db->getField($sql);
 }
예제 #2
0
파일: Query.php 프로젝트: v3u3i87/upadd
 /**
  * 获取表字段
  */
 protected function getField()
 {
     $this->_db->_sql = "SHOW COLUMNS FROM {$this->_table};";
     return $this->_db->getField();
 }