数据库查询字段中如果为null,使用!=将查询不出数据来

SELECT
    *
FROM
    enterprise
WHERE
    father_id != '-1' or isnull(father_id)

猜你喜欢

转载自blog.csdn.net/gaoweipeng238/article/details/81137151
今日推荐