Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 select 语句中,有一列包含下划线字符_。我想用空格替换下划线。例如,如果结果集列包含CLOSING_COMPANY,则结果应为CLOSING COMPANY
_
CLOSING_COMPANY
CLOSING COMPANY
如果要更改结果集中列的名称
SELECT closing_company AS "CLOSING COMPANY" FROM your_table_name
如果要更改列中的数据
SELECT REPLACE( column_name, '_', ' ' ) FROM your_table_name