Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8748189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:28:55+00:00 2026-06-13T12:28:55+00:00

In an Oracle database, in table A, there is a clob field called ‘ID_CLOB’,

  • 0

In an Oracle database, in table A, there is a clob field called ‘ID_CLOB’, storing some id’s from another table B.

Example:

|              ID_CLOB               |
,15,16,17,18,19,21,23,24,25,30,32,33,

And here is my question, how can I know from a SQL statement to tell if a number, say 15, is in the ‘ID_CLOB’ field?

Thanks in advcance.

The situation:

I am actually working on a third party application that come with this db schema. Think about the scenario: that in table B, there are person information per line, and table A, let’s assume its a department table, each row is a department and the clob field is used to store the information of who are in that department.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:28:56+00:00Added an answer on June 13, 2026 at 12:28 pm

    If the format of the data in that field is guaranteed to have comma delimiters before and after each value with no spaces, then the POSITION scalar would find it:

    SELECT * FROM A
          WHERE POSITION( ',15,', in id_clob ) > 0;
    

    This is not very efficient, though, and is fragile. If there are spaces between the values and the commas or if the first value is not preceded by a comma or if the last value is not trailed by a comma, it will fail.

    As others have pointed out, it would be better (if you can) to change the database design. In the real world, though, that is not always possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a option to see if existing table/record from a Oracle database is
In my Oracle database, I have a table called Customers. There are fields for
UPDATE [TABLE] SET [FIELD]=0 WHERE [FIELD] IS NULL [TABLE] is an Oracle database table
I am trying to merge records from an Oracle database table to my local
So i need to update some dates on an Oracle Database, the field is
I'm importing a database dump from one Oracle 10g installation into another. The source
I need to upload some data from an Oracle table to a SQL Server
I am using oracle database.I want to use duplicate rows from a table except
I'm trying to retrieve information from an Oracle database using XQuery. The table customer
Is there someway to read from a database table line by line using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.