File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes Multiple fields of Long type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Multiple fields of Long type" Watch "Multiple fields of Long type" New topic

Multiple fields of Long type

Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Hello All,
Why Oracle complains when trying to add more than one fields of LONG type? It says - "a table may contain only one column of type LONG".
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Because that is how it is designed.

The LONG datatype is deprecated anyway. Assuming you are not using an unsupported version of Oracle (i.e. v8i or below) you would use a LOB datatype instead. You can have more than one LOB field in a table.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: Multiple fields of Long type
jQuery in Action, 3rd edition