英文:
How to join 3 columns and make it as a single column in azure data factory
问题
Input:
First Name, middle name, lastname
Priya, null, Raju
Ramesh, shakti, Prabha
Output:
Firstname, middlename, lastname, Fullname
Priya, 空, Raju, Priya Raju
Ramesh, shakti, Prabha, Ramesh shakti Prabha
我使用了concat函数,但如果有null值,如何替换为空白值。
英文:
I want to join 3 columns and make it as a single column. While joining, if value is null, then replace it with default value (blank).
Input:
First Name, middle name, lastname
Priya, null, Raju
Ramesh, shakti, Prabha
Output:
Firstname, middlename, lastname, Fullname
Priya, null, Raju, Priya Raju
Ramesh, Shakti, Prabha, Ramesh Shakti Prabha
I used concat but if it has null how to replace with blank value
答案1
得分: 1
你可以使用这个表达式 iifNull({ColumnName}, ''')
来替代空值。
英文:
you can use this expression iifNull({ColumnName}, '')
to replace null.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论