随笔分类 - DB数据库 / GREENPLUM
摘要:行转列 一般行转列过程需要排序才能保障列的顺序正常,所以会使用order by select apply_no , split_part(string_agg(flow_step||'|'||flow_time,'|'ORDER BY flow_id),'|',1) insure1, split_p
阅读全文
摘要:指定表结构方式: CREATE OR REPLACE FUNCTION ads.fv_repay_detail() RETURNS TABLE( product_id bigint, real_date varchar, principal_tot NUMERIC, principal NUMERI
阅读全文