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

  • Home
  • SEARCH
  • 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 8318685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:03:47+00:00 2026-06-08T22:03:47+00:00

I am using Oracle 10 g. I have a table which needs two columns

  • 0

I am using Oracle 10 g.

I have a table which needs two columns of the Long type:

CREATE TABLE emp
 (
    id1 LONG NULL,
    id2 LONG NULL,
    //
    // Other columns.
);

When I am executing this query, it is giving me this error:

Error report:
SQL Error: ORA-01754: a table may contain only one column of type LONG
01754. 00000 -  "a table may contain only one column of type LONG"
*Cause:    An attempt was made to add a LONG column to a table which already
           had a LONG column. Note that even if the LONG column currently
           in the table has already been marked unused, another LONG column
           may not be added until the unused columns are dropped.
*Action:   Remove the LONG column currently in the table by using the ALTER
           TABLE command.

I searched on Google, but I could not find a proper solution. Why do they not allow two columns of LONG?

Is using number instead of a column a good idea?

How can I achieve this?

  • 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-08T22:03:50+00:00Added an answer on June 8, 2026 at 10:03 pm

    LONG columns have not been recommended for a long time; since 8i, I believe. From the 11g documentation:

    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB,
    BLOB) instead. LONG columns are supported only for backward
    compatibility.

    You were only ever allowed one LONG column in a table. I’m not entirely sure, but I think that was because the LONG data was stored alongside the other columns, and more than one would make it even more unmanageable. LOBs are stored differently; see the table here for a comparison.


    Oracle’s LONG datatype is ‘Character data of variable length up to 2 gigabytes’. If you’re storing numeric data, use NUMBER.

    If you’re mapping Java data types (guessing from your profile!), this table may be of use.

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

Sidebar

Related Questions

(Using Oracle) I have a table with key/value pairs like this: create table MESSAGE_INDEX
I have an Oracle stored procedure which takes two parameters: a custom data type
Using oracle database. Here's how i think the SQLException happens... Say i have two
I am using Oracle 10g and I have the following stored procedure: CREATE OR
We are using Magento as our eCommerce platform. We have Oracle apps in which
I am using oracle 11g and have a table with an XMLType. There are
We are using Java and Oracle for development. I have table in a oracle
I have an entity that maps to an external oracle table which is one
I'm using Oracle 11g R2. I have a table with 9.1 billion rows. When
I have a table (Oracle database) that looks like: CREATE TABLE example ( idEx

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.