Print Thread
Using BLOB in a SELECT statement
#1777 03/08/01 07:49 PM
Joined: Mar 2001
Posts: 5
France
O
Member
OP Offline
Member
O
Joined: Mar 2001
Posts: 5
France
I have text in a BLOB field and i want to do a select statment.
When i use DBMS_LOB.SUBSTR the result is in hexadecimal.
Also SELECT * FROM TEST WHERE DBMS_LOB.SUBSTR(BLOBFIELD) LIKE 'Ligne%' don't work.
But SELECT * FROM TEST WHERE DBMS_LOB.SUBSTR
(BLOBFIELD) LIKE RAWTOHEX('Ligne') | | '%' work well (but it's case sensitive);
I have tested SELECT * FROM TEST WHERE HEXTORAW(DBMS_LOB.SUBSTR(BLOBFIELD)) LIKE ('Ligne%'), but the result is the same that the first select (hexadecimal)
HEXTTORAW seem don't work.
What is the problem ?

Re: Using BLOB in a SELECT statement
#1778 03/09/01 01:34 PM
Joined: Sep 2000
Posts: 35
Lund, Sweden
D
Member
Offline
Member
D
Joined: Sep 2000
Posts: 35
Lund, Sweden
I'm not sure, but you could try having the field as CLOB when you have character data in it.

Re: Using BLOB in a SELECT statement
#1779 03/09/01 02:30 PM
Joined: Mar 2001
Posts: 5
France
O
Member
OP Offline
Member
O
Joined: Mar 2001
Posts: 5
France
I have already tested BLOB and CLOB but the result is the same.
The idea is to convert HEXA in VARCHAR2.
But i don't know how to process and why HEXTORAW don't work.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.024s Queries: 13 (0.006s) Memory: 2.5037 MB (Peak: 3.0421 MB) Data Comp: Off Server Time: 2024-05-14 15:21:28 UTC
Valid HTML 5 and Valid CSS