File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Aliases on Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Aliases on Oracle" Watch "Aliases on Oracle" New topic
Author

Aliases on Oracle

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I kow how to create a synonym on a table name, but what can I do for a column? I am using an open source project that has a db schema meshed out and I did not want to change my code to reflect the column names nor do I want to chnage the open source columns to match my db. I have been successful with the synonyms for tables, but what can I do for columns?
[ April 15, 2004: Message edited by: Bear Bibeault ]
Rudy Dakota
Ranch Hand

Joined: Jul 27, 2002
Posts: 54
Hi Tony,
You can redefine your column names in view definitions. That might help in this case. They might also help out 'changing' table names by the way, the advantage being that views are standard SQL, whereas synonyms are not (I think).
Good riding,
Rudy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Aliases on Oracle