| | |
| | | end; |
| | | $$ language plpgsql; |
| | | |
| | | select fn_10to62(3843); |
| | | select fn_10to62(3843); select fn_10to62(0); select fn_10to62(3844); |
| | | ----------------------------------------------------------------------------------------------------- 11.62进制转10进制 |
| | | -- drop function fn_62to10(numeric); |
| | | create or replace function fn_62to10(ch varchar) |
| | |
| | | end; |
| | | $$ language plpgsql; |
| | | |
| | | select fn_62to10('zz'); |
| | | select fn_62to10('zz'); select fn_62to10('0'); select fn_62to10('0'); |
| | | ----------------------------------------------------------------------------------------------------- 12.路径分析 |
| | | -- 删除已存在的函数 |
| | | drop function pgr_fromAtoB(varchar, double precision, double precision, double precision, double precision); |