mysql 裡面的isnull()和ifnull() is null 和 is not null
usergrade表
2.找到裡面username是null的行
SELECT * FROM usergrade WHERE ISNULL(USERNAME)
SELECT * FROM usergrade WHERE USERNAME IS NULL
3.找到裡面username不是null的行
SELECT * FROM usergrade WHERE USERNAME IS NOT NULL
4.列出所有的行,並且將username是null的欄位替換為lxy
SELECT IFNULL(USERNAME,'lxy'),GRADE FROM usergrade