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;
本文来自博客园,作者:那时一个人,转载请注明原文链接:https://www.cnblogs.com/qianxunman/p/13674223.html