本文主要是介绍写一个sql语句,如果查询的某个值结果为空时给出提示,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1: select decode(cloumn_name ,null,'没有数据,为空!!',cloumn) from table_name;
2:select case when column is null then 'tips' else column end from table;
3:select nvl(字段名,提示信息) from 表名
这篇关于写一个sql语句,如果查询的某个值结果为空时给出提示的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!