473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Newbie Question: CLOBs, LONG and text fields

Hey Folks,

Please forgive the complete ignorance, but I have a question regarding text
datatypes and table creation. Further, I am coming from a Linux
(Postgres/MySQL) and Microsoft (SQL Server/Access) environment and have not
run into this type of developmental/structural issue yet, so here goes:

I am attempting to create a knowledge base. One of the columns in the main
"notes" table has the purpose of storing textual data (such as a kb
article). As I understand it, I could use LONG, but can't use LONG's in a
where clause. I could use a CLOB (and every bit of literature I read
indicates I should be doing this), but if the text is larger than 4k, this
doesn't get stored inline. Further, I am having a problem understanding how
to check for given data within a CLOB.

1. Given table:

NOTES:
ID NOT NULL NUMBER(5)
TITLE VARCHAR2(128)
MODIFIED NOT NULL DATE
SECLEVEL NUMBER(3)
TYPEID NUMBER(3)
BODY CLOB

2. And the following statement:

SELECT * FROM NOTES WHERE TITLE LIKE '%ABC'% or BODY LIKE '%ABC%';

3. I get "ORA-00932: inconsistent datatypes" error.

Presumably, I get the error due to the fact that the column actually stores
the location to the CLOB and not the CLOB itself. My question(s) is: Is
there an easy'ish way to get the above method to work? Is there an
alternative that works equally well? Is my syntax off? Should I be using
some other datatype I haven't come across yet? Or am I completely loony and
this simply can't be done??!?!?

Note: I have read that interMedia can help solve this problem, but am
hesitant to go that route, as I simply don't know enough about it.

Comments? Questions? Solutions?

Any and all help is appreciated.

Jason
Jun 27 '08 #1
0 1090

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rachel Pevtzow | last post by:
i currently have a few (non-oracle) databases containing personal papers of wellington, mountbatten, etc. i'm thinking about moving it into oracle, but i'm worried about how to get the data in. ...
0
by: Fred | last post by:
Hello, I found a CLOB column in a DMS table that programmers were using to store tiny strings (less than a couple kilobytes). Since CLOB columns can only allocate entire kilobytes of space at...
1
by: kacper | last post by:
Hello, Recently I had to connect my application (Delphi, dbexpress) to remote db2 server connected via WAN. (3Mb/s). If I'm not working with clobs - everything works just great - I have an...
8
by: Bryan Feeney | last post by:
This structure is, according to sizeof, 3 bytes long, which makes sense struct test { char text; }; This structure is, according to sizeof, 4 bytes long, which also makes sense struct...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
4
by: justin tyme | last post by:
Hello Experts! I would like to combine (which may not be the correct technical term) two text fields from the same table in a query. Specifically, text field A and text field B are both lists of...
3
by: amitabh.mehra | last post by:
Hi I m new to DB2.. I am using DB2 version8. I have a few queries (which i create dynamically) stored in a table. The column which stores them is clob 32k. Each of these query has a ":wf_id"...
5
by: Dave | last post by:
I am new to Visual Web Developer 2005 Expres. I am using absolute positioning and every time I add a button control to my web form its width extends all the way to the edge of the page. IOW I...
4
by: DHS1 | last post by:
Hey guys. I have a lab that is due in two weeks, but I wanted to start on it now. Problem is, I'm at home during christmas break so I can't ask my professors. Here's my problem: I am given a very...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.