0

How could I remove simple quotation marks that appear in empty cells? See image below

View of a table including simple quotation marks

The columns can be either TEXT or CHARACTER VARYING(), these signs are still present. I have other tables with no quotation marks in empty cells... The extract above is the result of an importation of an ORACLE table into my PGSQL database. This is probably the reason why.

4

1 に答える 1

0

インポートプロセスで一重引用符が導入されたと思います。このクエリで解決する場合

select num_position, replace(num_position, '''', '')
from t;

次に、すべての一重引用符を置き換えます

update t
set
    num_position = replace(num_position, '''', ''),
    num_plan = replace(num_plan, '''', '')
于 2014-06-19T11:12:55.620 に答える