コード例 #1
0
ファイル: sgbd_pdo_mysql.php プロジェクト: clavat/mkframework
 public function getListColumn($sTable)
 {
     $pRs = $this->query(sgbd_syntax_mysql::getListColumn($sTable));
     $tObj = array();
     if (empty($pRs)) {
         return null;
     }
     while ($tRow = $pRs->fetch(PDO::FETCH_NUM)) {
         $tObj[] = $tRow[0];
     }
     return $tObj;
 }
コード例 #2
0
ファイル: sgbd_mysql.php プロジェクト: clavat/mkframework
 public function getListColumn($sTable)
 {
     $pRs = $this->query(sgbd_syntax_mysql::getListColumn($sTable));
     $tCol = array();
     if (empty($pRs)) {
         return $tCol;
     }
     while ($tRow = mysql_fetch_row($pRs)) {
         $tCol[] = $tRow[0];
     }
     return $tCol;
 }