jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "Aliases on Oracle" Watch "Aliases on Oracle" New topic

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,
I agree. Here's the link: http://aspose.com/file-tools
subject: Aliases on Oracle
It's not a secret anymore!