psql代码:
CREATE TABLE ref_lab_cohort_level
AS
SELECT cohort,initcap (TRIM (result_flag)) AS result_flag,
TRIM (cohort_level) AS cohort_level
FROM temp_labs_levels;
在上面的代码中,trim 是 PostgreSQL 的修剪功能,但它给出了如下错误:
function pg_catalog.btrim(numeric, unknown) does not exist