jQuery in Action, 3rd edition
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
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: http://aspose.com/file-tools
subject: Multiple fields of Long type
It's not a secret anymore!