1. 程式人生 > >寫一個sql語句,如果查詢的某個值結果為空時給出提示

寫一個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 表名