您当前的位置: 首页 > 

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

测试用的pg函数(存储过程)

qq_34412985 发布时间:2020-10-22 13:02:38 ,浏览量:0

declare mysql text; myID integer; begin mysql:='select max( $1 ) from $2'; execute mysql into myID using myFeildName,myTableName; if myID is null or myID=0 then return 1; else return myID+1; end if; end;

DECLARE testvalue1 VARCHAR (20) ; testvalue2 VARCHAR (20) ; BEGIN testvalue1 := 'First Test! ' ; SELECT 'Second Test !' INTO testvalue2 ; INSERT INTO act_ge_bytearray SELECT 'Hello World' ; INSERT INTO act_ge_bytearray (DATA) VALUES (testvalue1 || testvalue2) ; END ;

declare area integer := 0; begin area := lenth * height; return area; end

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0400s