如何在PostgreSQL中用S.T填充空值?

如何在PostgreSQL中用S.T填充空值?,sql,postgresql,Sql,Postgresql,有人知道如何在PostgreSQL中填充空值吗? 例如,Null值将替换为X 柱 A. B 无效的 C D 无效的 应该是: 柱 A. B x C D x 如果列为null,则可以使用返回其他值 什么是S.T?您正在使用的代码是什么,发生了什么,发生的事情与您期望的有什么不同? select coalesce(the_column, 'x') as the_column from the_table;

有人知道如何在PostgreSQL中填充空值吗? 例如,Null值将替换为X

柱 A. B 无效的 C D 无效的 应该是:

柱 A. B x C D x 如果列为null,则可以使用返回其他值


什么是S.T?您正在使用的代码是什么,发生了什么,发生的事情与您期望的有什么不同?
select coalesce(the_column, 'x') as the_column
from the_table;