Determine whether a certain field in sql is NULL
<span style="color: #000000">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; } </span>
The above is the detailed content of sql determines whether a field is empty. For more information, please follow other related articles on the PHP Chinese website!