mySQL数据库:
SELECT id_p,IFNULL(math,0)+IFNULL(english,0) 总分 from mytest_brian1
Oracle 数据库:
select id_p , nvl(address,0)* age from Persons2 ;
选取在 "Address" 列中带有 NULL 值的记录呢?
SELECT LastName,FirstName,Address FROM Persons WHERE Address IS NUL ;
选取在 "Address" 列中不带有 NULL 值的记录呢?
SELECT LastName,FirstName,Address FROM Persons WHERE Address IS NOT NULL;
原文地址:https://www.cnblogs.com/brianlai/p/10300049.html
时间: 2024-10-04 04:49:15