SAP Knowledge Base Article - Preview

2867849 - How to add a key using the ALTER TABLE statement - SAP PD

Symptom

  • How to generate a primary, an alternate or a foreign key with a separate SQL command, generally using an ALTER command after the creation of the table.
  • Syntax:

ALTER TABLE <table_name> ADD CONSTRAINT <constraint_name> PRIMARY KEY (<column_name>)


Read more...

Environment

SAP PowerDesigner (PD) 16.6

Product

SAP PowerDesigner 16.6

Keywords

pk, fk, ak, index, reference, inside , KBA , BC-SYB-PD , PowerDesigner , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.