I have a table with 59 columns and over 17K rows. Lots of the rows have NULL
in some of the columns.
I want to remove the NULL
so that queries return a blank (''
) rather than a NULL
.
Can I run some update function that replaces all NULL
with ''
?
Using SQL Server 2008R2 Management Studio.
UPDATE my_table
SET column_1 = REPLACE (column_1,NULL,'')
But that would take forever to do it to all 59 columns!
What's the trick, team?