mysql如果字段值为null 在使用<> == > <时会出问题

数据库中字段值为null,表示值未知,因为不能使用 =, !=, >、<等符号进行比较,只能使用 value is null 或者value is not null

或者使用 ifnull(field_name,'') <> '李二'

posted @ 2022-08-02 16:58  study_php_java_C++  阅读(187)  评论(0编辑  收藏  举报