pycharm postgres 代码片段,live template

-- 注释:
/*
 author:XXXX
 date:$date$
 desc:$desc$ 
 */
-- date 可以设置默认值:date("yyyy-MM-dd HH:mm:ss")

--创建临时表:
    drop table if exists tb_$name$_detail2;
    create temporary table tb_$name$ as
    $query$

--创建函数:
drop function if exists func_$name$;
create or replace function func_$name$()
    returns $returns$
as
$$$
$declare$
begin
    $content$
end
$$$ language plpgsql volatile;



posted @ 2020-09-15 17:25  那时一个人  阅读(201)  评论(0编辑  收藏  举报