What is a synonym? How is it used?

Answers were Sorted based on User's Feedback



What is a synonym? How is it used?..

Answer / s

Synonym is alternate name for a table.

Use of synonyms avoids changes to programs when you migrate
programs from test to production.

create synonym abc for test.abc in test

create synonym abc for prod.abc in production

Is This Answer Correct ?    0 Yes 0 No

What is a synonym? How is it used?..

Answer / vinod

A synonym is used to reference a table or view by another
name. The other name can then be written in the application
code pointing to test tables in the development stage and to
production entities when the code is migrated. The synonym
is linked to the AUTHID that created it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

what is different three logs in DB2?

1 Answers   Syntel,


List out the three types of page locks that can be held.

0 Answers  


in column y record abc.v abc.s xyz.j abc.h i wan only abc columns how to retrieve thi records

2 Answers   IBM,


What is scrollable cursor in db2?

0 Answers  


What is the specific need of Plan and..where are the tables in DB2 are physically saved

3 Answers   Infosys,






What is the difference between group by and order by?

2 Answers   IBM, TCS,


Why do we bind in db2?

0 Answers  


How to view db2 table structure?

0 Answers  


PLAN IS EXECUTABLE AND PACKAGE IS NOT EXECUTABLE . THEN WHAT IS THE USE OF PACKAGE?

2 Answers   Tech Mahindra, Wipro,


What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)?

5 Answers   Emsang,


How many buffer pools are available in db2?

2 Answers  


pls explain the precompilation process of cobol-db2 pgm

3 Answers   HCL, IBM,


Categories