# debug
1 | procedure debug(p_str in varchar2) is |
# rpad & lpad
1 | function char_format(p_data in varchar2, |
# put_file
1 | procedure put_file(p_str in varchar2, p_flag in varchar2 default 'Y') is |
# for loop mock seq, pallet, carton
1 | for i in 0..99 loop |
# put format json
1 | /** |
# string clean
1 | --Remove all CR/LF, trim the left and right spaces, tabs |
# date string change delimiter
1 | --select som_edi_custom_utils_pkg.date_str_change_delimiter('20201012', '-') from dual; |
# number to string with decimal
1 | --11.256 => 11.26 11 => 11.00 11.2 => 11.20 |
# string split
1 | type table_str is table of varchar2(4000); |
# get table columns
1 | --select som_edi_custom_utils_pkg.get_table_columns('som_edi_temp_h') from dual; |
# get split sub str
1 | function str_split_to_table(p_str in varchar2, p_separator in varchar2 default ',') return table_str pipelined |
# seq add
1 | --After manual mock data, update db seq avoid conflict with erp generate data |
# test regexp
1 | procedure str_regexp_test |
# test pivot
1 | /* |
# test array
1 | procedure array_test |