Why doesn’t this work? Is it a character set issue or something? This is driving me crazy. I’ve been searching all over. Maybe it’s just one of those days. 🙁
select replace('Doe, John B ',' _ ','')
Expected Results: “Doe, John”
Actual Results: “Doe, John B “
If this is not possible with replace, how else can I achieve this result?
For just this variable:
For an entire table: