what's the best way to code a sql safety net for null values when concatenated?

后端 未结 0 375
广开言路
广开言路 2021-01-27 00:44

if I create an id like this (tid::text || \'_\' || id::text) as master_id what\'s the best way to prevent null values in tid or id from creating a null value for the master_id?<

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