Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Krishnan Balasubramanian asked whether a synonym can be created for only specific columns of a table. Joe Plugge and Art Kagel both answered that it cannot, and advised creating a VIEW with the needed columns, optionally with a synonym on the view. Krishnan thanked both.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Krishnan,
First create a view that fulfills your column requirements and then
create a synonym to the view.
Use the CREATE SYNONYM statement to declare and register an alternative
name for an existing table, view, or sequence object.
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
KRISHNAN BALASUBRAMANIAN
Sent: Thursday, December 25, 2008 11:58 PM
To: ids@iiug.org
Subject: Selective columns for creating synonym [14402]
Hi,
I wanted to create a synonym only for specfic columns from a table. Is
it
possible..?
Thanks
Krishnan
************************************************************************
*******
Forum Note: Use "Reply" to post a response in the discussion forum.
No. Use a VIEW.
Art
On Fri, Dec 26, 2008 at 12:57 AM, KRISHNAN BALASUBRAMANIAN <
krishnanbalasubramanian@rediffmail.com> wrote:
> Hi,
>
> I wanted to create a synonym only for specfic columns from a table. Is it
> possible..?
>
> Thanks
> Krishnan
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.