clob 测试版
1
CREATE TABLE sammy_test_clob (
2![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
4![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
ID NUMBER,
6![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
site VARCHAR2(4000),
8![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
mail_data CLOB
10![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
12![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
13
)
14![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
15
16![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
17
INSERT INTO sammy_test_clob
18![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
19
VALUES ( 1, 'BQA', EMPTY_CLOB( ));
20![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
21
INSERT INTO sammy_test_clob
22![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
23
VALUES ( 2, 'BQP', EMPTY_CLOB( ));
24![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
25
INSERT INTO sammy_test_clob
26![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
27
VALUES ( 3, 'BQA', EMPTY_CLOB( ));
28![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
29
30![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
31
32![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
33
--读
34![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
35
DECLARE
36![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
37
v_data VARCHAR2( 4000 );
38![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
39
v_show_data VARCHAR2( 5000 );
40![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
41
BEGIN
42![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
43
SELECT invhl_read_clob_data( 'sammy_test_clob',
44![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
45
'mail_data',
46![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
47
'site = ''BQP''',
48![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
49
1 )
50![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
51
INTO v_data
52![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
53
FROM DUAL;
54![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
55
56![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
57
-- for v IN 1..length(v_data)/255 loop
58![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
59
--v_show_data := substr(v_data,0,255);
60![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
61
--v_data := substr(v_data,v*255);
62![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
63
v_show_data := TRIM( v_data );
64![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
65
DBMS_OUTPUT.put_line( v_show_data );
66![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
67
--end loop;
68![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
69
-- DBMS_OUTPUT.put_line( v_show_data );
70![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
71
END;
72![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
73
74![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
75
--写
76![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
77
CALL invhl_update_clob_data('sammy_test_clob','mail_data','site = ''BQP''',0,'BVBVBVBV')
78![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
12
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
13
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
14
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
15
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
16
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
17
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
18
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
19
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
20
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
21
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
22
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
23
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
24
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
25
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
26
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
27
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
28
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
29
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
30
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
31
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
32
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
33
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
34
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
35
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
36
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
37
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
38
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
39
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
40
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
41
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
42
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
43
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
44
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
45
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
46
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
47
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
48
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
49
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
50
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
51
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
52
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
53
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
54
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
55
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
56
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
57
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
58
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
59
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
60
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
61
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
62
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
63
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
64
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
65
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
66
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
67
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
68
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
69
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
70
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
71
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
72
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
73
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
74
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
75
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
76
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
77
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
78
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)