This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
Have you checked out Aspose?
subject: Multiple fields of Long type
jQuery in Action, 3rd edition