1: DECLARE
3: SUBTYPE Balance IS NUMBER(8,2);
5: checking_account Balance;
7: savings_account Balance;
9: BEGIN
11: checking_account := 2000.00;
13: savings_account := 1000000.00;
15: END;
17: /
19: Result:
21: DECLARE
23: *
25: ERROR at line 1:
27: ORA-06502: PL/SQL: numeric or value error: number precision too large
29: ORA-06512: at line 9
4: Implicit Conversion Between Constrained Subtypes with Same Base Type
1: DECLARE
3: SUBTYPE Digit IS PLS_INTEGER RANGE 0..9;
5: SUBTYPE Double_digit IS PLS_INTEGER RANGE 10..99;
7: SUBTYPE Under_100 IS PLS_INTEGER RANGE 0..99;
9: d Digit := 4;
11: dd Double_digit := 35;
13: u Under_100;
15: BEGIN
17: u := d; -- Succeeds; Under_100 range includes Digit range
19: u := dd; -- Succeeds; Under_100 range includes Double_digit range
21: dd := d; -- Raises error; Double_digit range does not include Digit range
23: END;
25: /
27: Result:
29: DECLARE
31: *
33: ERROR at line 1:
35: ORA-06502: PL/SQL: numeric or value error
37: ORA-06512: at line 12
5: Implicit Conversion Between Subtypes with Base Types in Same Family
1: DECLARE
3: SUBTYPE Word IS CHAR(6);
5: SUBTYPE Text IS VARCHAR2(15);
7: verb Word := 'run';
9: sentence1 Text;
11: sentence2 Text := 'Hurry!';
13: sentence3 Text := 'See Tom run.';
15: BEGIN
17: sentence1 := verb; -- 3-character value, 15-character limit
19: verb := sentence2; -- 5-character value, 6-character limit
21: verb := sentence3; -- 12-character value, 6-character limit
23: END;
25: /
27: Result:
29: DECLARE
31: *
33: ERROR at line 1:
35: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
37: ORA-06512: at line 13
Error : APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06502: PL
sion 11.5.9 to 12.1.3 [Release 11.5 to 12.1]Oracle Applicat...
java字符串匹配到特殊字符 java字符串寻找特定字母
1.一个字符串中可能包含有a~z中的多个字符,如有重复,如String data="zassdrttyhhkjhjoiubvnvmkweqdqwe", 求出现次数最多的那个字母及出现的次数,如有多个重复的,都求出。import java.util.ArrayList;
import java.util.Collections;
import j