Return deafult value in SQL select statment searched value is not found

前端 未结 0 1725
心在旅途
心在旅途 2021-01-26 03:09

I need to return default value in Select statement when WHERE clause is not met. So basically, this query returns valid guid:

SELECT COALESCE(w.guid , gen_random_         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题