- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
create or replace FUNCTION ISNUMBER(test_str IN VARCHAR) RETURN INTEGER AS
i INTEGER;
num NUMBER;
BEGIN
select DECODE(INSTR(TRANSLATE(test_str,
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'),'X'),0,1,0) INTO i
FROM DUAL;
RETURN i;
END;
/
bot 21.06.2016 19:02 # +14
CHayT 21.06.2016 22:12 # +13
поправил, пока не позно
inkanus-gray 21.06.2016 22:30 # +13
kegdan 22.06.2016 07:02 # +13
bormand 21.06.2016 21:20 # +14
guest 24.06.2016 10:05 # +10