コード例 #1
0
ファイル: Select.php プロジェクト: chaoyanjie/MonkeyPHP
 /**
  * 设置筛选条件IsNotNull
  *
  * @param $fieldName
  *
  * @return $this
  */
 public function havingIsNotNull($fieldName)
 {
     $this->having->where($fieldName, NULL, 'IS NOT NULL');
     return $this;
 }
コード例 #2
0
ファイル: Update.php プロジェクト: chaoyanjie/MonkeyPHP
 /**
  * exists
  *
  * @param Select $select
  *
  * @return $this
  */
 public function notExists(Select $select)
 {
     $this->condition->where('', $select, 'NOT EXISTS');
     return $this;
 }