Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: 10g field varchar size
Frank van Bortel wrote:
> DA Morgan schreef:
CREATE TABLE demo (
clobcol CLOB);
INSERT INTO demo (clobcol) VALUES ('This is a test'); INSERT INTO demo (clobcol) VALUES ('This is not a test'); COMMIT; desc demo
SELECT * FROM demo;
SELECT *
FROM demo
WHERE dbms_lob.substr(clobcol, 32767, 1) LIKE '%not%';
set serveroutput on
DECLARE
clobvar CLOB := '%not%';
clobres CLOB;
BEGIN
SELECT clobcol
INTO clobres
FROM demo
WHERE clobcol LIKE clobvar;
dbms_output.put_line(clobres);
END;
/
Am I misunderstanding the question?
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Sun Aug 13 2006 - 13:01:31 CDT