SELECT clob_column
FROM your_table
WHERE condition;
SELECT DBMS_LOB.SUBSTR(clob_column, length, offset)
FROM your_table
WHERE condition;
SELECT TO_LOB(clob_column)
FROM your_table
WHERE condition;
DECLARE
clob_data CLOB;
BEGIN
SELECT clob_column
INTO clob_data
FROM your_table
WHERE condition;
DBMS_OUTPUT.PUT_LINE(clob_data);
END;
需要注意的是,對于大型CLOB數據,最好使用DBMS_LOB包中的函數進行查詢,以避免性能問題。