0
点赞
收藏
分享

微信扫一扫

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;

懂得,原来世界如此简单!



举报

相关推荐

0 条评论