Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Primary Key on View

Status
Not open for further replies.

kingz2000

Programmer
May 28, 2002
304
DE
I just wanted to know what I have done wrong in this statement, where I am trying to add a primary key to a view:

alter View MyView
add constraint prm_pk Primary Key(policy_no)
disable novalidate;

I get an syntax error message regarding the 'add'

I heard it is possible to set a view a primary key.Please tell me how it should be changed.Thank you!


Kingsley
 
Are you using ASA or ASE? What version?

I work in ASA V10 and the only way to do this is to declare your view and MATERIALIZED view.

Mitch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top