sql判断某个字段是否为空
判断sql某个字段是否为NULL
public function dataNull($id){
$sql = 'SELECT * FROM `vvt_company_funcs_user` WHERE ISNULL(`last_login_time`) AND id ='. $id;
$res = $this->query($sql);
return $res;
}
判断sql某个字段是否为NULL
public function dataNull($id){
$sql = 'SELECT * FROM `vvt_company_funcs_user` WHERE ISNULL(`last_login_time`) AND id ='. $id;
$res = $this->query($sql);
return $res;
}